Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Homepage
Snake game¶
The premise to this game is simple¶
- The game takes place in an open area
- You can choose from 3 speed options and 3 levels
- The snake is made of segments that follow one another; each segment will effectively take the same path as the head (front of the snake)
- The snake is always moving - the player simply changes the direction of movement
- Randomly placed "food" appears on the map
- The size of the snake is growing by eating food
- When the snake touches the food, it consumes it. The length of the snakes body increases, and the player gains a point
- If the snake touches another part of its own body, or any obstacle in case of lvl-2 and lvl-3, the health points decrease
Menu¶
- Welcome message
- Choosing between the 3 options of speed
- Choosing between the 3 levels
- Press Start and enjoy Use X and B buttons to choose
Controls¶
Controls - Menu¶

Controls - game¶
