How to run: Open the HTML file in your browser - double-click it or drag it into Chrome. In this build-along you write the code, then watch it come alive in the canvas on the right.
Lumo says: every step adds one feature to the same game. Type a little, click Apply to Canvas, and test it straight away. There is no wrong answer you can't undo.
Build Snake Step by Step
Each step adds a feature. Write the code, watch it come alive in the canvas.
Step 1 / 6
Click the canvas, then use arrow keys to play
Prefer the written guide? The full step-by-step Snake guide and starter template are still here if you want them: Download the starter files.