A Breakout game with Bevy game engine.
This is for educational-purposes, to learn more about Bevy and Rust in general.
Clone the repository, and then install the packages:
cargo install
Run the game with:
cargo run
# alternative for a bit faster launch
cargo run --features bevy/dynamic_linking
Lint usin Clippy:
cargo clippy
Everything is a plugin in their respective files, and thanks to that the main
function looks like:
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(GamePlugin)
.add_plugins(ScoreboardPlugin)
.add_plugins(PhysicsPlugin)
.add_plugins(PaddlePlugin)
.add_plugins(WallPlugin)
.add_plugins(BallPlugin)
.add_plugins(BricksPlugin)
.run();
}
Here are free websites to design assets:
- https://sfxr.me/ to make 8-bit or 16-bit sounds.
- https://www.piskelapp.com/ to design sprites.
- The starter code is written via this video from this repository.
- This is also a great Bevy tutorial.
- Here is a nice template as well.