A Video for the Ojambo.com HTML5 Game Physics Moving Elastic Collisions article.
Part One of One
Game characters bouncing off each other can be achieved using constant acceleration. The canvas acts as a non-moving object during collisions. Elastic collisions cause characters to reverse or lose some momentum.
The video begins editing a previous index HTML file from the second tutorial about HTML5 Game Physics. The file will contain the page content and the updated JavaScript information.
The tutorial is broken up into four parts. The first part runs the previous code in the browser.
The second part removes drag and gravity from velocity. The third part adds the collision code. The final part consists of testing output using a web browser.