[SDL] Spaceship rotation
Will Langford
unfies at gmail.com
Wed Aug 22 16:29:00 PDT 2007
i believe sdl_gfx lib has a bitmap rotozoom thing in it.
you could also port abrash's
or if it's it's own opengl poly (2d on ogl) just rotate that (assuming
textures are poly specific on their coords / whatever, rather than world).
-Will
On 8/22/07, L-28C <kixdemp at gmail.com> wrote:
>
> Hello everyone!
>
> I have a little ship on a black background I like to call 'outer space'.
>
> I want to move it like, the up arrow moves it forward and the side
> arrows change direction. What's the best way to do this?
>
> I've asked Mr. Google but all I find is code to do the actual bitmap
> rotation, but I'm using SGE for that.
>
> Please be as specific as possible, last time I asked something similar
> people came up with algebraic and geometric functions I have no idea
> about.
>
> Thanks, SDL town! ;]
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070822/cf985dcd/attachment.htm>
More information about the SDL
mailing list