spot light effect in platform game
what would be a good way to simulate a spot light effect for a 2d game ?
the way i would do it if i could - would be to draw everything on the backbuffer, put a mask on it in the shape of a triangle (well something more complex but triangle would do for now) and then flip to the primary ...
the thing is i want to be able to rotate the mask so that i could have my hero holding a torch so when he walks around all you see is a tirangle infront of him and nothing else ...
more advanced i would want to have tranperancy on the edges of the triangle but not required at this moment....
any advice would be great .. thanks
note - i am using dx7