Browser Games · FlappyBird9 EditorialHow HTML5 Canvas Games Work
Overview
Canvas provides a drawing surface that JavaScript can update repeatedly.
What to know
A game loop advances positions, checks collisions and draws the current state. Input handlers translate keys or touches into actions.
Try it yourself
A responsive page can scale the canvas while keeping the game logic in its own coordinate system.


