File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ version = "0.16.1"
77# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88
99[dependencies ]
10- bevy = " 0.16 "
11- bevy_utils = " 0.16 "
10+ bevy = " 0.17 "
11+ bevy_utils = " 0.17 "
1212lazy_static = " 1.5"
1313rand = " 0.9"
1414
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ fn main() {
2727 primary_window : Some ( Window {
2828 title : "tetris" . to_string ( ) ,
2929 resizable : false ,
30- resolution : ( 360. , 443. ) . into ( ) ,
30+ resolution : ( 360u32 , 443u32 ) . into ( ) ,
3131 ..default ( )
3232 } ) ,
3333 ..default ( )
@@ -117,7 +117,7 @@ fn keyboard_system(
117117 time : Res < Time > ,
118118 mut query : Query < ( Entity , & mut Transform ) , With < BrickBoardBundle > > ,
119119) {
120- let ticked = game. keyboard_timer . tick ( time. delta ( ) ) . finished ( ) ;
120+ let ticked = game. keyboard_timer . tick ( time. delta ( ) ) . is_finished ( ) ;
121121 if let Ok ( ( moving_entity, mut transform) ) = query. single_mut ( ) {
122122 if ticked {
123123 if keyboard_input. pressed ( KeyCode :: ArrowLeft )
@@ -167,7 +167,7 @@ fn movebrick_systrem(
167167 time : Res < Time > ,
168168 mut query : Query < & mut Transform , With < BrickBoardBundle > > ,
169169) {
170- let ticked = game. falling_timer . tick ( time. delta ( ) ) . finished ( ) ;
170+ let ticked = game. falling_timer . tick ( time. delta ( ) ) . is_finished ( ) ;
171171 if let Ok ( mut transform) = query. single_mut ( ) {
172172 if ticked {
173173 if game
You can’t perform that action at this time.
0 commit comments