Kuncheng Liu

Snake Game

A classic Snake game built with HTML5 Canvas. Control the snake using arrow keys or WASD to eat the red food. Each food increases your score and makes the snake longer. Avoid hitting the walls or yourself!

Game Stats

Score: 0
High Score: 0
Length: 3
Speed: Normal

Controls

↑ ↓ ← →
Arrow Keys
W A S D
WASD Keys
Space
Pause/Resume

Game Rules

  • Eat the red food to grow and score points
  • Avoid hitting walls or your own tail
  • Speed increases every 5 foods eaten

Leaderboard

No scores yet. Play a game!

Enter your name to save your score to the leaderboard.

How to Play

1. Start the Game

Click "Start Game" or press Space to begin. The snake will start moving automatically.

2. Control the Snake

Use arrow keys or WASD to change the snake's direction. Guide it towards the red food.

3. Score Points

Each food eaten gives 10 points and makes the snake longer. Try to beat your high score!