Simulating “random” movements using the HTML5 canvas element. Blocks move in random directions and collide. Resets if less than 2 blocks remain.
See the Pen HTML5 Canvas Collider #3 by Philip Newborough (@corenominal) on CodePen.
Note: Please be excellent (this is not YouTube and I reserve the right not to publish comments from muppets.) Your email address will not be published. Required fields are marked *