This is a simple game where the player controls a rover on a grid. The rover can thrust in 3 directions: Up, left, and right. The goal is to avoid falling asteroids and get the best score possible.
- Clone the repository:
git clone https://github.com/your-username/game_project.git
- Install Rust: https://www.rust-lang.org/tools/install
- Build the project:
cargo build
- Run the game:
cargo run
- Follow the on-screen instructions to play the game.
To control the small ship, use the arrow keys, the ship's got inertia to it and you can only thrust up, left, and right. The game is over when the ship collides with an asteroid.
you can also land on the small green platforms.
Key | Action |
---|---|
Up | Thrust up |
Left | Thrust left |
Right | Thrust right |
Q | Quit the game |
P | Pause the game |
- Build documentation using
cargo doc
- Open the resulting index.html file with your browser of choice
This project is a work in progress and is not yet complete. It is not recommended to use this project in a production environment.
Furthermore, the project is heavily inspired by the tutorial 'flappy dragon' from the book 'Hands-on Rust : Effective Learning through 2D Game Development and Play ' by Herbert Wolverson. The tutorial was used as a starting point to learn Rust and game development with the bracket-lib framework.