Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A classic Snake game implementation using HTML5 Canvas and JavaScript.

Features

  • Smooth snake movement
  • Score tracking
  • Collision detection
  • Game over handling
  • Responsive controls

How to Play

  1. Clone this repository
  2. Run node server.js
  3. Open http://localhost:3000 in your browser
  4. Use arrow keys to control the snake
  5. Eat the red food to grow and increase your score
  6. Avoid hitting the walls or the snake's body

Controls

  • ↑ (Up Arrow): Move Up
  • ↓ (Down Arrow): Move Down
  • ← (Left Arrow): Move Left
  • → (Right Arrow): Move Right

Technologies Used

  • HTML5 Canvas
  • JavaScript
  • CSS
  • Node.js (for local server)

Project Structure

  • index.html: Main game file with HTML, CSS, and JavaScript
  • server.js: Simple Node.js server for local hosting

Snake

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages