Computer Science Canada bouncing:ball |
Author: | gilbamy [ Fri May 26, 2006 11:13 am ] | ||
Post subject: | bouncing:ball | ||
Alright i need some direction with this program okay the bloody ball won't bounce around the screen and how do i do borders so the ball won't go off the screen here is my code oh and i tried using Pic.Free but it would not work i think it is though in my code
|
Author: | jamonathin [ Fri May 26, 2006 12:19 pm ] | ||
Post subject: | |||
Here's an example i pulled together for you. One thing you have to keep in mind is: The velocity starts at 10, and keeps being decreased by 0.5. Eventually it will be negative, once it does, a negative number is being subracted - which then means it is being added. This is when the ball goes up.
|
Author: | NikG [ Sat May 27, 2006 12:10 am ] |
Post subject: | |
Haha jamonathin, almost looks like I'm watching a tennis match from the side. |
Author: | upthescale [ Sat May 27, 2006 2:55 pm ] |
Post subject: | |
yes it does, pretty cool stuff |