IMP1 / GameFlesh

The 'flesh' to the Game Skeleton I'm developing
0 stars 0 forks source link

Visibility #1

Closed IMP1 closed 9 years ago

IMP1 commented 9 years ago

Once seen, tiles get added to the visisted array. If seeable, tiles are added to the visible array.

Players have sight radiuses. Check all tiles around in that radius and check if a line can be drawn to the player. If so, it's visible.

IMP1 commented 9 years ago

Done as of 4cb6d6b52c57ea08e4e4d738a4f7fab5b1d88cc8. Still has a bug though.