🐛 bug: fix the multiple jump bug
parent
14665512e1
commit
e7854f9021
BIN
crate.png
BIN
crate.png
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2.1 KiB |
|
@ -194,7 +194,8 @@ async fn main () -> Result <()> {
|
||||||
Event::KeyDown { keycode: Some (Keycode::R), .. } => {
|
Event::KeyDown { keycode: Some (Keycode::R), .. } => {
|
||||||
game_state.reset_level (&level);
|
game_state.reset_level (&level);
|
||||||
},
|
},
|
||||||
Event::KeyDown { keycode: Some (Keycode::Space), .. } => {
|
Event::KeyDown { keycode: Some (Keycode::Space), repeat: false, .. } => {
|
||||||
|
debug! ("Space down");
|
||||||
player_wants_to_jump = true;
|
player_wants_to_jump = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue