Fog of War works but it's in the wrong place and needs to be based on light.
This commit is contained in:
parent
2802a44ba4
commit
d264760405
5 changed files with 33 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue