Subject: [stella] Angular movement From: Glenn Saunders <mos6507@xxxxxxxxxxx> Date: Tue, 13 Jan 2004 20:55:31 -0800 |
The easy way: First you decide how many angles you want and what should be the ball speed.
For each angle you need two values, one for the x- and one for the y-speed. Each values consists out of two bytes to store fractional speeds.
E.g. the ball speed should be 3 pixel/frame, for an angle of 30° you get a speed of 1.5/2.6 (x/y) pixels/frame. Converted into fractional values you get 1/128 and 2/153.
---------------------------------------------------------------------------------------------- Archives (includes files) at http://www.biglist.com/lists/stella/archives/ Unsub & more at http://www.biglist.com/lists/stella/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [stella] JoustPong: maybe ditch, Thomas Jentzsch | Thread | Re: [stella] Angular movement, Christopher Tumber |
RE: [stella] Death Derby, is the au, Dennis Debro | Date | Re: [stella] Angular movement, Manuel Rotschkar |
Month |