diff --git a/main.cpp b/main.cpp index f4c4e4d..1cdb14a 100644 --- a/main.cpp +++ b/main.cpp @@ -19,9 +19,6 @@ namespace fs = std::filesystem; */ void configure_world(DinkyECS::World &world, Map &game_map) { const auto &config = world.get_the(); - // this sets up the gui event system - world.set_the(Events::GUI::START); - // configure a player as a fact of the world Player player{world.entity()}; world.set_the(player); diff --git a/status.txt b/status.txt index 9cfba0f..548a90e 100644 --- a/status.txt +++ b/status.txt @@ -1,9 +1,5 @@ NOTES: -* src/ftxui/screen/color_info.hpp has pallete. -* src/ftxui/screen/color.cpp -* Just search for ugrep x1B -* https://man7.org/linux/man-pages/man4/console_codes.4.html TODO: diff --git a/systems.cpp b/systems.cpp index 4802863..e43f29b 100644 --- a/systems.cpp +++ b/systems.cpp @@ -35,8 +35,10 @@ void System::enemy_pathing(DinkyECS::World &world, Map &game_map, Player &player void System::init_positions(DinkyECS::World &world) { auto &collider = world.get_the(); - world.query([&](const auto &ent, auto &pos) { - collider.insert(pos.location, ent); + world.query([&](const auto &ent, auto &pos, auto &combat) { + if(!combat.dead) { + collider.insert(pos.location, ent); + } }); }