Now have more test for the base functionality but need to push render tests and find a way to test the GUI. I've also brought in sol2 for lua integration but not sure what to do with it.

This commit is contained in:
Zed A. Shaw 2024-11-30 10:43:25 -05:00
parent d0d62836e3
commit e86d474c7c
14 changed files with 188 additions and 8 deletions

View file

@ -149,7 +149,7 @@ void System::collision(DinkyECS::World &world, Player &player) {
}
void System::draw_entities(DinkyECS::World &world, Map &game_map, ftxui::Canvas &canvas, const Point &cam_orig, size_t view_x, size_t view_y) {
auto &lighting = game_map.lighting();
const auto &lighting = game_map.lighting();
world.query<Position, Tile>([&](const auto &ent, auto &pos, auto &tile) {
if(pos.location.x >= cam_orig.x && pos.location.x <= cam_orig.x + view_x