allow w to jump
This commit is contained in:
parent
0e452fef12
commit
e7e1242ef4
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue