Skip to content

Developer-Parth/Snake-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game

A simple but visually polished snake game built using HTML5 Canvas, JavaScript, and CSS. Control the snake using either arrow keys or WASD, eat the red squares (fruits), and avoid crashing into yourself or the walls.

📸 Preview

preview

🎮 Live Preview

Play the Snake Game

📁 Project Structure

├── index.html       # Main HTML file
├── style.css        # Styling for the game canvas and controls
├── game.js          # JavaScript logic for snake movement, collisions, score, etc.
└── README.md        # Project information and setup instructions

⌨️ Controls

  • Arrow Keys or WASD to move the snake
  • Spacebar to pause the game
  • Escape to reset the game

🧠 Features

  • Classic Snake gameplay
  • Visual UI buttons for arrow controls
  • Smooth movement with pause/reset options
  • Score and High Score tracking
  • Optional wall boundaries

🛠️ Setup Instructions

  1. Clone the repository or download the ZIP
  2. Open index.html in any modern browser
  3. Alternatively, deploy on services like Vercel or Netlify for live hosting

📜 License

This project is open-source and free to use under the MIT License.


Made with ❤️ by Parth Thukral

About

A user friendly multi device responsive snake game giving nostalgia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published