forked from Lncvrt/berry-dash-rs
bruh
This commit is contained in:
1 file changed
+2
@@ -69,6 +69,8 @@ fn update_position(
|
||||
let jump = keys.just_pressed(KeyCode::Space)
|
||||
|| keys.just_pressed(KeyCode::ArrowUp)
|
||||
|| keys.just_pressed(KeyCode::KeyW)
|
||||
|| keys.just_pressed(KeyCode::KeyS)
|
||||
|| keys.just_pressed(KeyCode::KeyI)
|
||||
|| keys.just_pressed(KeyCode::KeyK);
|
||||
if jump && player.on_ground {
|
||||
player.vel_y = JUMP_VEL;
|
||||
|
||||
Reference in new issue
Block a user