Bouncing ball with collision detection
Posted by markhwebster on February 14th, 2018 • 0 Comments
The drawing above is a self portrait done so long ago I can’t even remember the year. I have dark hair, so it was probably during my twenties or thirties.
I used to program games in flash that had rockets flying in space. They had motors that fired, directional thrusters, variable velocity, collision detection, gravity, friction and bounce. But flash is dead…or at least it doesn’t work on phones, and I like to make things that work on phones.
Here is the code if you are curious: https://codepen.io/markhwebster/pen/VQzyJM