Fog of War now works fairly normally, but I think I'll have to do something so people don't live in the map. Probably something like hearing distance is increased because you're louder with a map out, and you can't see enemies on the map.

This commit is contained in:
Zed A. Shaw 2025-07-21 23:21:24 -04:00
parent 2997dc363b
commit 6f91533950
6 changed files with 19 additions and 11 deletions

View file

@ -61,7 +61,7 @@ namespace gui {
void MapViewUI::render(sf::RenderWindow &window, int compass_dir) {
$gui.render(window);
System::draw_map($level, $map_tiles, $entity_map);
System::render_map($level, $map_tiles, $entity_map, *$map_render, compass_dir, $player_display);
System::render_map($map_tiles, $entity_map, *$map_render, compass_dir, $player_display);
$map_sprite.setTexture($map_render->getTexture(), true);
window.draw($map_sprite);
// $gui.debug_layout(window);