Systems now control most of the game's operations and a lot of the rendering logic, this now brings in a camera so maps can be larger than the viewport.
This commit is contained in:
parent
e42647d727
commit
da64e526c4
5 changed files with 62 additions and 36 deletions
|
@ -7,6 +7,7 @@
|
|||
namespace System {
|
||||
void motion(DinkyECS::World &world, Map &game_map);
|
||||
void combat(DinkyECS::World &world, Player &player);
|
||||
void draw_entities(DinkyECS::World &world, ftxui::Canvas &canvas);
|
||||
void enemy_pathing(DinkyECS::World &world, Map &game_map, Player &player);
|
||||
void draw_map(DinkyECS::World &world, Map &game_map, ftxui::Canvas &canvas, size_t view_x, size_t view_y);
|
||||
void draw_entities(DinkyECS::World &world, Map &game_map, ftxui::Canvas &canvas, const Point &cam_orig, size_t view_x, size_t view_y);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue