Skip to content

YohannHommet/snake_ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Cyber Snake

GitHub last commit GitHub top language License GitHub stars

Cyber Snake Preview

A modern implementation of the classic Snake game with a cyberpunk twist, built using vanilla JavaScript.

Play Now · Report Bug

✨ Features

  • 🎮 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

🚀 Getting Started

Prerequisites

  • 🌐 A modern web browser
  • 💻 A local web server (can use Live Server extension in VS Code)

Installation

  1. Clone the repository:
git clone https://github.com/YohannHommet/snake_ai.git
  1. Navigate to the project directory:
cd snake_ai
  1. Start a local server:

    • Using VS Code: Install "Live Server" extension and click "Go Live"
    • Using Node.js: npx serve
  2. Open your browser and navigate to the local server address (typically http://localhost:8000)

🎮 Game Controls

  • ⬆️ ⬇️ ⬅️ ➡️ Arrow keys to control snake direction
  • 🔊 'M' to mute/unmute sound
  • ⏸️ Space to pause/resume game
  • 🎯 Click difficulty buttons to change game speed

🏗️ Project Structure

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

🤝 Contributing

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

📬 Contact

Yohann Hommet - @yohannhommet


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published