Suppose I want to create a 2D game where the player can freely move in a map with walls (including diagonal ones). I don't know the best way to create a game like this but I suppose using tiles is not the best option.
How can I implement a line-of-sight game to occlude stuff hidden behind walls and angles the player can't see?
Every frame it has to check the LoS for each wall but I don't know the best way to store the map information due to diagonal walls