Small "game engine" example

Run it standalone (click the small arrow on top left of this window), and you will then be able to control the player (small black square) using the arrow keys. You can also move the square with the mouse, for debugging collision detection.