• Advertisement
Sign in to follow this  

Spot/Circle Light

This topic is 1647 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement