A classic Snake game implementation using HTML5 Canvas and JavaScript.
- Smooth snake movement
- Score tracking
- Collision detection
- Game over handling
- Responsive controls
- Clone this repository
- Run
node server.js - Open
http://localhost:3000in your browser - Use arrow keys to control the snake
- Eat the red food to grow and increase your score
- Avoid hitting the walls or the snake's body
- ↑ (Up Arrow): Move Up
- ↓ (Down Arrow): Move Down
- ← (Left Arrow): Move Left
- → (Right Arrow): Move Right
- HTML5 Canvas
- JavaScript
- CSS
- Node.js (for local server)
index.html: Main game file with HTML, CSS, and JavaScriptserver.js: Simple Node.js server for local hosting