This project is a Rust implementation of the classic arcade game Breakout. In this game, players control a paddle at the bottom of the screen to bounce a ball against a wall of bricks at the top. The goal is to break all the bricks without letting the ball fall off the bottom of the screen.
- High-resolution gameplay (1440x1080)
- Randomized brick colors
- Scoring system and live tracking
- Simple and intuitive paddle controls
Before you can run this game, you need to have the following installed:
- Rust programming language
- SDL2
- SDL2_ttf (for font rendering)
-
Install Rust: Follow the instructions on the official Rust website to install Rust on your machine.
-
Install SDL2 libraries: SDL2 and SDL2_ttf are required to handle graphics rendering and font management. You can install these libraries through your operating system's package manager. For example, on Ubuntu, you can use:
sudo apt-get install libsdl2-dev libsdl2-ttf-dev
To build and run the game, follow these steps:
-
Clone the repository:
git clone https://github.com/lostjared/Breakout.Rust.git cd Breakout.Rust/breakout-rust
-
Compile the project:
cargo build --release
-
Run the game:
cargo run --release
- Left Arrow Key: Move the paddle left
- Right Arrow Key: Move the paddle right
- Escape Key: Exit the game
Contributions to this project are welcome. Please fork the repository, make your changes, and submit a pull request.