Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

i'm wondering: how to create a simple "car headlight" (for i.e) or a torch spotlight in Sdl or Sdl.NET ? Does anyone know how ? Thanks

share|improve this question
    
2d or 3d? screenshots or youtube vids on what you're looking for? (yes, I understand this is a 2 year old question..) –  Jari Komppa Sep 25 '12 at 7:52

1 Answer 1

You can implement the light as a translucent image, e.g. a .png with an alpha channel. Then you just rotate it to point to your looking direction.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.