Skip to content

Repository files navigation

Snake-Game

A classic Snake Game built in Rust using the macroquad crate.

Features

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

ScreenShot

Add a screenshot here.

Demo

controlll

Key Action
↑ Move Up
↓ Move Down
← Move Left
→ Move Right

Stack

  • Rust
  • Macroquad

Project Structure

src/
├── main.rs
├── snake.rs
├── food.rs
├── grid.rs
├── keyboard.rs
└── position.rs
on.rs

Roadmap

  • Snake movement
  • Food system
  • Snake growth
  • Random food spawning
  • Self collision
  • Score
  • High score
  • Sound effects
  • Pause menu
  • Mobile controls
  • Better animation

run in locally

git clone https://github.com/cyberworrier8088/Snake-Game.git

cd Snake-Game
cargo runn

Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Open a Pull Request

License

This project is licensed under the MIT License

Theme

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. :)))

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks