Re: [stella] JoustPong: maybe ditch "poorlords" wall

Subject: Re: [stella] JoustPong: maybe ditch "poorlords" wall
From: Glenn Saunders <mos6507@xxxxxxxxxxx>
Date: Mon, 12 Jan 2004 21:24:31 -0800
At 06:15 AM 1/12/2004, you wrote:
.23 pixels per frame...  or 1.56 pixels per frame.
Just because you program things on a frame by frame basis doesn't mean your
objects have to move on a frame by frame basis.  If you have a variable
holding the coordinate of the ball, and that variable has a fractional
component, then you just add ".23 pixels"  or  "1.56 pixels" to the ball
position... every frame... and use the integer part of the ball's coordinate
for the actual ball position display.

It should be noted that this is complicated by the angles in which the ball moves. If the angles are locked at 45', maybe it won't be that difficult, as there is always an equal amount of both x and y delta on each frame but if there are varying angles then the amount of movement per frame is different x vs. y depending on the angle of movement.

---------------------------------------------------------------------------------------------- Archives (includes files) at Unsub & more at

Current Thread