diff options
author | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-03 16:37:26 +0100 |
---|---|---|
committer | Henauxg <19689618+Henauxg@users.noreply.github.com> | 2022-11-03 16:37:26 +0100 |
commit | 4103125aa0f3ad3368ccf97fbdae5eedbe6e7233 (patch) | |
tree | a8633a116f21b07216f2e8251cc659464ec683cb /examples/breakout/breakout.rs | |
parent | 1a2ff09fc27f10a779aac875a55dbdd0d8791b96 (diff) |
[example:breakout] Spawn bricks at the right place
Diffstat (limited to 'examples/breakout/breakout.rs')
-rw-r--r-- | examples/breakout/breakout.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/breakout/breakout.rs b/examples/breakout/breakout.rs index 1511037..1183dbb 100644 --- a/examples/breakout/breakout.rs +++ b/examples/breakout/breakout.rs @@ -36,10 +36,9 @@ const TOP_WALL: f32 = 300.; const BRICK_SIZE: Vec2 = Vec2::new(100., 30.); // These values are exact -const GAP_BETWEEN_PADDLE_AND_BRICKS: f32 = 270.0; +const GAP_BETWEEN_PADDLE_AND_BRICKS: f32 = 140.0; const GAP_BETWEEN_BRICKS: f32 = 5.0; // These values are lower bounds, as the number of bricks is computed -const GAP_BETWEEN_BRICKS_AND_CEILING: f32 = 20.0; const GAP_BETWEEN_BRICKS_AND_SIDES: f32 = 20.0; #[derive(Clone, Eq, PartialEq, Debug, Hash)] |