GameJs is a thin library on top of the HTML canvas element. In addition to the drawing functions it has a set of generally helpful modules for game development. Most of the GameJs' drawing API is based on the popular PyGame .