
A modern implementation of the classic Snake game with a cyberpunk twist, built using vanilla JavaScript.
- 🎮 Classic snake gameplay with modern controls
- 🌟 Cyberpunk visual theme with glitch effects
- 💫 Power-up system (Speed boost, Score multiplier, Time freeze)
- 🏆 High score system with local storage
- 🎵 Retro sound effects
- 🎯 Multiple difficulty levels
- ✨ Particle effects and visual feedback
- 🌐 A modern web browser
- 💻 A local web server (can use Live Server extension in VS Code)
- Clone the repository:
git clone https://github.com/YohannHommet/snake_ai.git
- Navigate to the project directory:
cd snake_ai
-
Start a local server:
- Using VS Code: Install "Live Server" extension and click "Go Live"
- Using Node.js:
npx serve
-
Open your browser and navigate to the local server address (typically
http://localhost:8000
)
- ⬆️ ⬇️ ⬅️ ➡️ Arrow keys to control snake direction
- 🔊 'M' to mute/unmute sound
- ⏸️ Space to pause/resume game
- 🎯 Click difficulty buttons to change game speed
snake-ai/
├── 📁 css/
│ └── style.css
├── 📁 js/
│ ├── game.js
│ ├── snake.js
│ ├── food.js
│ ├── grid.js
│ ├── scoreBoard.js
│ ├── highScoreManager.js
│ ├── powerUpManager.js
│ ├── soundManager.js
│ ├── particleSystem.js
│ ├── visualEffects.js
│ └── difficultyManager.js
├── 📁 sounds/
│ ├── eat.mp3
│ ├── gameOver.mp3
│ ├── powerUp.mp3
│ └── start.mp3
├── 📄 index.html
└── 📄 README.md
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'feat: Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Font: Orbitron
- Sound Effects: OpenGameArt
Yohann Hommet - @yohannhommet
https://snake-cyberpunk.netlify.app/
Made with ❤️ by Yohann Hommet