Can actually save the game now.

main
Zed A. Shaw 4 weeks ago
parent b2ed598c1f
commit 67cacd5dcd
  1. 3
      main.cpp
  2. 4
      status.txt
  3. 6
      systems.cpp

@ -19,9 +19,6 @@ namespace fs = std::filesystem;
*/
void configure_world(DinkyECS::World &world, Map &game_map) {
const auto &config = world.get_the<MapConfig>();
// this sets up the gui event system
world.set_the<Events::GUI>(Events::GUI::START);
// configure a player as a fact of the world
Player player{world.entity()};
world.set_the<Player>(player);

@ -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:

@ -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<spatial_map>();
world.query<Position>([&](const auto &ent, auto &pos) {
collider.insert(pos.location, ent);
world.query<Position, Combat>([&](const auto &ent, auto &pos, auto &combat) {
if(!combat.dead) {
collider.insert(pos.location, ent);
}
});
}

Loading…
Cancel
Save