A classic Snake Game built using pure HTML, CSS, and JavaScript. Itโs responsive, keyboard- and touch-friendly, and includes simple sound effects for a more interactive experience.
- Grid-based movement
- Snake grows as it eats
- Score tracking
- Game over detection
- Increasing difficulty
- Sound effects using Web Audio API
- Touch controls for mobile
- Responsive design
snake-game/ โโโ index.html # Main game layout โโโ style.css # Styling for game and layout โโโ script.js # All game logic and interactivity โโโ README.md # Project documentation
- Use Arrow keys or on-screen buttons to control the snake.
- Eat the food to grow and score points.
- Avoid colliding with the walls or yourself.
- The speed increases as your score rises.
- โ Arrow: Move Up
- โ Arrow: Move Down
- โ Arrow: Move Left
- โ Arrow: Move Right
- Tap the directional buttons to control the snake.
- Sound when food is eaten
- Game over sound
- Implemented using the lightweight Web Audio API
- No external files required
- HTML5
- CSS3
- JavaScript (ES6)