Report as inappropriate.
I needed to refresh myself with the laws of gravity. Here's a quick demo with a Ball that understands how to live in the real world.
Click run for the first 5 balls to start.
At any time, create a new ball and drop it on the background or just click away!!
Click the idle balls at the bottom to remove them.
Very simple, but the code should be interesting to people.
Do play with the gravity and kineticEnergyLoss variables!!
There are a couple of simple games that I'm thinking off with these!
Want to leave a comment? You must first log in.
No votes yet.