Skip to content

isaka-james/gemu-la-nyoka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gemu La Nyoka

since 04 Sep,2024

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.

Features

  • - Simple and intuitive controls
  • Incremental difficulty with growing snake
  • Fun and engaging gameplay
  • Score tracking

Screenshots

image

Getting Started

Prerequisites

  • Rust (latest stable version)
  • Cargo (Rust package manager)

Installation

  1. Clone the repository:
git clone https://github.com/isaka-james/gemu-la-nyoka.git
  1. Navigate to the project directory:
cd gemu-la-nyoka
  1. Build the project:
cargo build
  1. Run the game:
cargo run

Controls

  • Arrow Keys: Move the snake
  • ESC: Exit the game

Code Structure

  • src/main.rs: The main entry point for the game
  • src/game.rs: Contains the game logic and mechanics
  • src/snake.rs: Handles the snake's movement and growth
  • src/draw.rs: Functions for drawing game elements on the screen

Contributing

Contributions are welcome! Please fork the repository and create a pull request for any improvements or new features.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments

  • 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

Contact

Isaka James - GitHub

Releases

No releases published

Packages

No packages published

Languages