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.
├── 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
- Arrow Keys or WASD to move the snake
- Spacebar to pause the game
- Escape to reset the game
- Classic Snake gameplay
- Visual UI buttons for arrow controls
- Smooth movement with pause/reset options
- Score and High Score tracking
- Optional wall boundaries
- Clone the repository or download the ZIP
- Open
index.html
in any modern browser - Alternatively, deploy on services like Vercel or Netlify for live hosting
This project is open-source and free to use under the MIT License.
Made with ❤️ by Parth Thukral