This repository aims to host a simple version of the classical snake game in 2D. You can control de motion of the snake using the arrow key on your keyboard.
You can load the game on the browser here: https://nelson-pechmay.github.io/simple_snake/
- Press an arrow key to start the game.
- Play the game and when the snake collide with a wall or itself it will trigger the game-over screen.
- Click the "Restart" button.
- The canvas should immediately display the snake and food in their initial positions, and the game-over screen should disappear.
- Press an arrow key to start the new game.
Here are some screenshots of the game:
| Screen test 01 | Screen test 02 |
|---|---|
![]() |
![]() |

