01
Render through canvas
The vanilla JavaScript canvas engine is responsible for drawing the game in the browser. Canvas rendering lets the game present a scene through programmatic drawing. Game state and drawing have different jobs: progression determines what has changed, while rendering makes that change visible.


