[SDL] Rotating sprites

IoDream IoDream at ifrance.com
Sat Jun 8 12:28:03 PDT 2002


        Hi to all,

    The developpers of the game Trophy (using Clanlib ;_( ) provide GIMP
scripts for that purpose at
http://trophy.sourceforge.net/index.php3?body=developers_corner.

Best Regards,
^IoDream^

----- Original Message -----
From: "Chris" <chris at luethy.net>
To: <sdl at libsdl.org>
Sent: Saturday, June 01, 2002 2:07 AM
Subject: Re: [SDL] Rotating sprites


> I think the best way to do it is to simply prerender the sprites (rotate
> them in Gimp or Photoshop) and throw them all in one big picture file.
> You can then load that entire picture file strip onto a surface, and
> blit just the portions you need. It seems to work great for the game I'm
> making right now, but if you're doing full 360 degrees of rotation, at
> least in my personal opinion, I think at least 36 frames looks good.
>
> On Thu, 2002-05-30 at 17:53, James wrote:
> > I'm writing a game with a small car in it. The car rotates when you
> > press the arrow keys.
> >
> > Currently I have 16 sprites to give varying degrees of rotation. I blit
> > the required one to the screen.
> >
> > > Would using the SDL_rotozoom/SDL_gfx library to rotate a base sprite
by
> > be any slower? I'm having problems aligning the sprites up so they look
> > nice when rotated, and the animation looks jerky with only 16 frames.
> >
> > The sprites are only 16x16 pixels...
> >
> > --
> > Organ transplants are best left to professionals
> >
> > 6AD6 865A BF6E 76BB 1FC2 | www.piku.org.uk/public-key.asc
> > E4C4 DEEA 7D08 D511 E149 | www.piku.org.uk wnzrf at cvxh.bet.hx (rot13'd)
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl
> >
> --
> Chris
> chris at luethy.net
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl


 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif






More information about the SDL mailing list