mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 14:10:19 +00:00
d3d9cab30c
# Objective - Improve the code quality of the breakout example - As a newcomer to `bevy` I was pointed to the breakout example after the "Getting Started" tutorial - I'm making this PR because it had a few wrong comments + some inconsistency in used patterns ## Solution - Remove references to `wall` in all the collision code as it also handles bricks and the paddle - Use the newtype pattern with `bevy::prelude::Deref` for resources - It was already used for `Velocity` before this PR - `Scoreboard` is a resource only containing `score`, so it's simpler as a newtype `Score` resource - `CollisionSound` is already a newtype, so might as well unify the access pattern for it - Added docstrings for `WallLocation::position` and `WallLocation::size` to explain what they represent |
||
---|---|---|
.. | ||
alien_cake_addict.rs | ||
breakout.rs | ||
contributors.rs | ||
desk_toy.rs | ||
game_menu.rs | ||
stepping.rs |