A classic Snake game implementation using HTML5 Canvas and JavaScript.
- Responsive canvas-based gameplay
- Score tracking
- Collision detection
- Keyboard controls
-
Use arrow keys to control the snake:
- ↑ Up arrow: Move up
- ↓ Down arrow: Move down
- ← Left arrow: Move left
- → Right arrow: Move right
-
Eat the red food to grow and increase your score
-
Avoid hitting the walls or yourself
-
Try to achieve the highest score possible!
Simply open index.html
in a web browser to start playing.