Spot/Circle Light

Started by
1 comment, last by walsh06 10 years, 9 months ago

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.

Advertisement

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

I think the simple technique would be perfect actually. Im not trying anything too complex with shadows and stuff so that circle around the player would seem to fit. Thanks for that.

This topic is closed to new replies.

Advertisement