Gemu La Nyoka is a classic snake game implemented in Rust. The goal is to guide the snake to eat food, grow longer, and avoid colliding with itself or the walls. This project demonstrates basic game development principles using Rust.
- - Simple and intuitive controls
- Incremental difficulty with growing snake
- Fun and engaging gameplay
- Score tracking
- Rust (latest stable version)
- Cargo (Rust package manager)
- Clone the repository:
git clone https://github.com/isaka-james/gemu-la-nyoka.git
- Navigate to the project directory:
cd gemu-la-nyoka
- Build the project:
cargo build
- Run the game:
cargo run
- Arrow Keys: Move the snake
- ESC: Exit the game
src/main.rs
: The main entry point for the gamesrc/game.rs
: Contains the game logic and mechanicssrc/snake.rs
: Handles the snake's movement and growthsrc/draw.rs
: Functions for drawing game elements on the screen
Contributions are welcome! Please fork the repository and create a pull request for any improvements or new features.
- Fork the Project
- Create your 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
Distributed under the MIT License. See LICENSE
for more information.
- Rust community for excellent resources and support
- Piston Window for the windowing and graphics library
- rand for random number generation library
- Project inspired by tensor
Isaka James - GitHub