A classic Snake Game built in Rust using the macroquad crate.
- Smooth snake movement
- Random food spawning
- Snake grow when eats food
- Game over when snake hits itself or wall
- Responsive window size
- webassmbly support
- cross-platform suppport (Window, Linux, MacOs, , andirod and etc)
Add a screenshot here.
| Key | Action |
|---|---|
| ↑ | Move Up |
| ↓ | Move Down |
| ← | Move Left |
| → | Move Right |
- Rust
- Macroquad
src/
├── main.rs
├── snake.rs
├── food.rs
├── grid.rs
├── keyboard.rs
└── position.rs
on.rs
- Snake movement
- Food system
- Snake growth
- Random food spawning
- Self collision
- Score
- High score
- Sound effects
- Pause menu
- Mobile controls
- Better animation
git clone https://github.com/cyberworrier8088/Snake-Game.git
cd Snake-Game
cargo runnContributions are welcome!
- Fork the repository
- Create a new branch
- Commit your changes
- Open a Pull Request
This project is licensed under the MIT License
theme fit: This game not have end. becuse this like loop inside like. you a grid inside you can go. but you dont toach ur tail. random infinty food genarte you eat time. and than you have no wall you can go but left side you come right and etc.
Made with using Rust. :)))