I think the actual map drawing is more of a view thing than in the system, so I've moved it to the MapViewUI out of system.

This commit is contained in:
Zed A. Shaw 2024-12-31 06:18:25 -05:00
parent 380e18b91a
commit 5adeb4e078
5 changed files with 42 additions and 78 deletions

View file

@ -14,7 +14,6 @@ namespace System {
void collision(DinkyECS::World &world, Player &player);
void death(DinkyECS::World &world);
void enemy_pathing(DinkyECS::World &world, Map &game_map, Player &player);
void draw_map(DinkyECS::World &world, Map &game_map, const Matrix &lighting, ftxui::Canvas &canvas, size_t view_x, size_t view_y);
void draw_entities(DinkyECS::World &world, Map &game_map, const Matrix &lighting, ftxui::Canvas &canvas, const Point &cam_orig, size_t view_x, size_t view_y);
void init_positions(DinkyECS::World &world);
}