Saturday, September 21, 2019

Roguelike 3 lighting

I added a smoothing pass over the lighting calculation to smooth the lights of the current tile by looking at its neighbors.  this way you get a nice soft shadow instead of a hard one. I think it looks better. It's not perfect though. some corridors cast a darkness onto lighted tiles.. but for now this is fine.

Also limited the calculating of tile lighting to the tiles surrounding the player, not the complete map at once (2nd half of the video)
The players light is a bit less bright now,  so when you enter a room with torches, you notice stuff getting brighter and not just 'all tiles are bright now'

I wanna try and do some level generation for my next experiment..



No comments:

Post a Comment