Simulating “random” movements using the HTML5 canvas element. Blocks move in random directions and collide. Blocks are regenerated.
See the Pen HTML5 Canvas Collider #4 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 *