Fog of War works but it's in the wrong place and needs to be based on light.

This commit is contained in:
Zed A. Shaw 2025-07-20 01:34:39 -04:00
parent 2802a44ba4
commit d264760405
5 changed files with 33 additions and 14 deletions

View file

@ -100,8 +100,11 @@ TEST_CASE("map image test", "[map-sprite]") {
for(matrix::each_row it{level.map->walls()}; it.next();) {
player_pos.location.x = it.x;
player_pos.location.y = it.y;
size_t width = level.map->width();
size_t height = level.map->height();
System::draw_map(level, map_tiles, entity_map);
Matrix fow = matrix::make(width, height);
System::draw_map(level, map_tiles, fow, entity_map);
System::render_map(map_tiles, entity_map, *render, 2, player_display);
#ifdef TEST_RENDER