[A83] Re: Sprite Rotation?


[Prev][Next][Index][Thread]

[A83] Re: Sprite Rotation?



 





yeah, you could use sin,cos, and atan, but those only look good on a big
screen 

basically, for every pixel, you need: 

theta = atan2(x,y) 

r = (x^2 + y^2)^.5 

pixel_commad_on_or_off(sin(theta) * r, cos(theta) * r) 

very slow, even if you write your own routines and lookup tables for n^.5
andtrig functions, respectively >From: Gavin Olson >Reply-To:
assembly-83@lists.ticalc.org >To: assembly-83@lists.ticalc.org >Subject:
[A83] Re: Sprite Rotation? >Date: Fri, 18 Oct 2002 12:28:27 -0400 >>>You
meanangles other than 0/90/180/270? On an 83 screen, the sprites >would have
to be big to not turn into really bad looking stuff. You might >try using 8
pre-rendered sprites and selecting to draw the one that is the >appropriate
angle. >>At 06:11 PM 10/18/2002 +0200, you wrote: >>>Hello everybody,
>>>>Does someone know a rotation sprite routine, i.e. drawing the sprite in
a>>(e.g.) circular fashion? >>>>thx, >>>>Hasan 

----------------------------------------------------------------------------
Protect your PC - Click here[1] for McAfee.com VirusScan Online 

--- Links ---
   1 http://g.msn.com/8HMSEN/2024