A modern implementation of the classic Snake game using Python Flask for the backend and HTML5 Canvas for the frontend. Features a sleek, responsive design with glassmorphism UI elements and smooth animations.
- 🎮 Classic Snake gameplay with modern graphics
- 🎯 Real-time score tracking with high score system
- 🎨 Beautiful glassmorphism UI design
- 📱 Responsive web interface
- ⌨️ Multiple control options (Arrow keys or WASD)
- 🌈 Gradient snake design with smooth animations
- 🏆 High score tracking
- 🔄 Instant restart functionality
- Clone the repository:
git clone https://github.com/yourusername/modern-snake-game.git
cd modern-snake-game
- Install dependencies:
pip install flask
- Run the game:
python app.py
- Open your browser and go to:
http://localhost:5000
- Use Arrow keys or WASD to control the snake
- Eat the red food to grow and score points
- Avoid hitting the snake's body
- Press R or click "New Game" to restart
- Try to beat your high score!
- Backend: Python Flask
- Frontend: HTML5, CSS3, JavaScript
- Graphics: HTML5 Canvas
- Styling: Modern CSS with animations
- Architecture: Client-server model with REST API
modern-snake-game/
├── app.py # Flask backend server
├── templates/
│ └── index.html # Frontend game interface
├── README.md # Documentation
└── LICENSE # MIT License
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m '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.
- Inspired by the classic Nokia Snake game
- Modern UI design principles
- Flask framework documentation
- HTML5 Canvas API
Una implementación moderna del clásico juego de la serpiente usando Python Flask para el backend y HTML5 Canvas para el frontend. Cuenta con un diseño elegante y responsivo con elementos de interfaz tipo glassmorphism y animaciones suaves.
- 🎮 Jugabilidad clásica con gráficos modernos
- 🎯 Seguimiento de puntuación en tiempo real
- 🎨 Diseño de interfaz con efecto cristal
- 📱 Interfaz web responsiva
- ⌨️ Múltiples opciones de control
- 🌈 Diseño de serpiente con gradientes
- 🏆 Sistema de puntuación máxima
- 🔄 Función de reinicio instantáneo
Ver instrucciones de instalación en inglés arriba