lets-godot-roguelike
lets-godot-roguelike copied to clipboard
Update Thing visibility on player map_pos_changed
When the player changes map position, calculate a FOVmap, which should be an array of Vector2
map cells which are considered "visible".
Iterate through all nodes in the "things" group and compare them to the FOVmap. Hide anything not in this map, and show anything that is.