Playable result only — the source code stays hidden.
Mission 0: See What You’re Building
Play Snake Lite before you code. This is the hardest quest in the pack. The snake moves on a grid, remembers several body positions, grows when it eats, loses on walls or itself, and speeds up as the score grows.
Controls: use the arrow keys to steer. The snake starts moving right automatically. After losing, press R to restart.
Mission 0 is especially useful here: focus on the behaviour first. You do not need to understand the whole finished program before Mission 1.
What you’ll build, mission by mission
- 1Move on a grid
Use a timed beat instead of smooth movement.
- 2Turn with arrows
Change direction rather than position directly.
- 3Place food
Add another grid object.
- 4Eat food
Score and respawn food on the grid.
- 5Remember the body
Use an array as movement history.
- 6Grow
Keep one extra body position after eating.
- 7Hit the wall
Validate the next head before moving.
- 8Bite your tail
Search the body array for self-collision.
- 9Restart
Reset the full structured state.
- 10Speed up
Increase difficulty at score milestones.