Hi,
Was wondering how you can have dark sections in a game and light sections. What I mean is, say a lamp on a platform, this would light up certain part of area around it (I’ve done this with checking tiles around it and changing the tint on them) - how would you make it light up anything that comes near it - i.e.sprites such as the player, so for instance player goes right next to light they would light up a lot, move away from light and go they would go darker. Also, enter a dark dungeon with no light, player goes darker.
Would you use a lightmap texture and put this into a framebuffer and use some form of shader on the light map?
I did find this article:
Thanks