Interesting don't see any jerkiness with acceleration using vx, vy.
Here is one I don't want to lose, now that I've got it figured out for minimal lines and processing:
How boring never allowed outside the box
You can replace all 5's will variable v for velocity and maybe for acceleration too if you want.
Here is one I don't want to lose, now that I've got it figured out for minimal lines and processing:
Code: (Select All)
sw = 800: sh = 600
Screen _NewImage(sw, sh, 32)
x = sw / 2: y = sh / 2
Do
Cls
kh& = _KeyHit
x = x + -5 * (kh& = 19200) * (x > 0) + 5 * (kh& = 19712) * (x < sw)
y = y + -5 * (kh& = 18432) * (y > 0) + 5 * (kh& = 20480) * (y < sh)
Line (x - 50, y - 50)-Step(100, 100), _RGB(255, 255, 0), BF
_Limit 300 ' 10 is too choppy 30 OK? 300! doesn't seem 10 X's faster than 30
_Display
Loop Until kh& = 27
System
You can replace all 5's will variable v for velocity and maybe for acceleration too if you want.
b = b + ...