Link6415 Posted November 7, 2016 Share Posted November 7, 2016 *Sigh* I've been trying to make gravity in my game for about a week now, and it's driving me nuts. All I want to do is throw a sprite up into the air and have it fall back down - while simulating gravity, so it looks real. I've been playing a lot of Bob Smith's "Video Pinball" on the 2600 to get inspiration: http://www.free80sarcade.com/2600_Video_Pinball.php My current method is this: A = 1, B = 16 Wait for A tic and move sprite. Repeat B times. Increase A. Decrease B. Repeat until B = 0, then flip A and B and move the sprite in the opposite direction. This works, the sprite gets slower as it gets higher, and speeds up as it falls, but it looks really bad. There must be a better way. Some pseudocode would be great, I'm going insane. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.