Skip to content

Commit

Permalink
remove TIME_STEP from velocity and speed
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed Mar 15, 2021
1 parent b8525c3 commit 1f0c9a9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/game/breakout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ fn setup(
sprite: Sprite::new(Vec2::new(120.0, 30.0)),
..Default::default()
})
.with(Paddle {
speed: 500.0 * TIME_STEP,
})
.with(Paddle { speed: 8.0 })
.with(Collider::Paddle)
// ball
.spawn(SpriteBundle {
Expand All @@ -75,7 +73,7 @@ fn setup(
..Default::default()
})
.with(Ball {
velocity: 400.0 * TIME_STEP * Vec3::new(0.5, -0.5, 0.0).normalize(),
velocity: 6.0 * Vec3::new(0.5, -0.5, 0.0).normalize(),
})
// scoreboard
.spawn(TextBundle {
Expand Down

0 comments on commit 1f0c9a9

Please sign in to comment.