Collision detection demo; you can't go through walls.

Control with arrow-keys.

new Walls(document.querySelector('#my-canvas'));