Classic snake game using P5.js
- The snake never stops moving
- I can control the snake with my arrow keys
- I can see a randomly placed food
- If the snake eats this food, it gets longer
- If the snake hits the edge, it dies
- If the snake bites itself, it dies
- I can see the number of foods I collected
I definitely need to add a splash screen on start and a game over screen with the final score and an option to restart the game.
It would be also great to make it mobile friendly and you could swipe to control the snake.