I have just started a new game in XNA and I want to add some light effects to the game. Basically Id like a light to centre on the player and only light up what is around the player in a certain radius. The game is a 2d dungeon crawler and top down so the light need only be a circle surrounding the player. So could anyone point me in the direction of a tutorial for this type of lighting. Thanks for any help.
Members - Reputation: 621
Posted 15 July 2013 - 10:20 AM
There was a tutorial on how todo it on Gamedev .. i'll see if i can find a link.
However there are 2 different techniques depending on what you need.
Have a look at this Kypton XNA i use this in my framework atm, works very nicely.
this is a far simpler technique and may give you what you want Simpler technique