This is a very lightweight, bare-bones, 2D JS game engine with rendering in HTML5 Canvas.
Write any initilization code in the Game Object's Start function.
draws each entity in the game in sorted order.
calls each entity's update method
examples of Entity code, each with update and draw logic.
returns true the frame the mouse is pressed.
returns true if the mouse is down currently.
returns the mouse pos in the game world.
a dictionary of keys, true if that key is currently pressed.