Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.