diff --git a/src/game/player.rs b/src/game/player.rs index 691919a..32c12e2 100644 --- a/src/game/player.rs +++ b/src/game/player.rs @@ -102,7 +102,10 @@ fn move_player( moved = true; move_x += 1; } - if kb_input.pressed(KeyCode::Space) && vel.linvel.y < 0.1 && grounded { + if (kb_input.pressed(KeyCode::Space) || kb_input.pressed(KeyCode::KeyW)) + && vel.linvel.y < 0.1 + && grounded + { moved = true; move_y += 1; }