GuillemBarroso / CLing

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

Fog object implementation #79

Closed GuillemBarroso closed 1 year ago

GuillemBarroso commented 1 year ago

Fix #74 and fix #76.

Implement a fog object that applies a shadow effect depending on the player's vision parameters (vision angle and length).

The smooth transition from completely opaque and transparent is achieved by drawing N number of polygons with decreasing alpha values.