A simple canvas-based JavaScript game engine