File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
use bevy:: {
2
- core:: { FixedTimestep } ,
2
+ core:: FixedTimestep ,
3
3
prelude:: * ,
4
4
render:: pass:: ClearColor ,
5
5
sprite:: collide_aabb:: { collide, Collision } ,
@@ -16,9 +16,7 @@ fn main() {
16
16
. add_stage (
17
17
FixedUpdateStage ,
18
18
SystemStage :: parallel ( )
19
- . with_run_criteria (
20
- FixedTimestep :: step ( TIME_STEP as f64 )
21
- )
19
+ . with_run_criteria ( FixedTimestep :: step ( TIME_STEP as f64 ) )
22
20
. with_system ( paddle_movement_system. system ( ) )
23
21
. with_system ( ball_collision_system. system ( ) )
24
22
. with_system ( ball_movement_system. system ( ) ) ,
@@ -65,7 +63,9 @@ fn setup(
65
63
sprite : Sprite :: new ( Vec2 :: new ( 120.0 , 30.0 ) ) ,
66
64
..Default :: default ( )
67
65
} )
68
- . with ( Paddle { speed : 500.0 * TIME_STEP } )
66
+ . with ( Paddle {
67
+ speed : 500.0 * TIME_STEP ,
68
+ } )
69
69
. with ( Collider :: Paddle )
70
70
// ball
71
71
. spawn ( SpriteBundle {
You can’t perform that action at this time.
0 commit comments