Closed IMP1 closed 9 years ago
Once seen, tiles get added to the visisted array. If seeable, tiles are added to the visible array.
visisted
visible
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.
Done as of 4cb6d6b52c57ea08e4e4d738a4f7fab5b1d88cc8. Still has a bug though.
Once seen, tiles get added to the
visisted
array. If seeable, tiles are added to thevisible
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.