GuillemBarroso / CLing

2D survival game using command line
MIT License
3 stars 1 forks source link

Fog interaction with static objects #81

Closed GuillemBarroso closed 1 year ago

GuillemBarroso commented 1 year ago

Fix #75.

This PR proposes a method to keep track of all the areas that have been already seen by the player. These are stored in a surface called Fog Of War (FOW).

Another surface important is FOG, which only displays (with transparent alpha) the vision camp.

Then, what it's actually displayed are the minimum values when superposing these two surfaces.