'ello everybody.
I searched for this topic (assumed someone had to have
asked it before -- which they did), but still had questions
about how to go about this. The math, etc..
So, I'm making a really simple 2D game. Right now I'd like to
add ellipses underneath the objects on the screen to simulate
shadows. These ellipses would shrink as the object gets higher.
You know, Super Mario Bros shadow effects. :P
btw, I'm very rusty at programming right now. I haven't really
done anything in a couple years...
Now, I know I can do this in GDI, but wouldn't that only
draw the ellipse to the Device Context of the Window
and not the DDraw Surface I'm using as a back buffer?
That would mean they wouldn't be in my screenshots...
Would locking the surface and coloring each pixel black
be the best way, then?
Now, here's my real problem: How do I make an ellipse
that stretches? I mean, math-wise. And if I am able to draw
the actual ellipse, how would I color it in?



LinkBack URL
About LinkBacks



