mirror of
https://github.com/Noratrieb/game-wip-dontplay.git
synced 2026-01-15 12:15:01 +01:00
Change to WASD movement
This commit is contained in:
parent
4c9fe26ec9
commit
1f0cd8050c
1 changed files with 4 additions and 4 deletions
|
|
@ -77,14 +77,14 @@ impl App {
|
|||
4.0
|
||||
};
|
||||
self.game.player.hspeed = 0.;
|
||||
if self.input.down(Key::Left) {
|
||||
if self.input.down(Key::A) {
|
||||
self.game.player.hspeed = -spd;
|
||||
}
|
||||
if self.input.down(Key::Right) {
|
||||
if self.input.down(Key::D) {
|
||||
self.game.player.hspeed = spd;
|
||||
}
|
||||
if self.input.pressed(Key::Up) {
|
||||
self.game.player.vspeed = -14.0;
|
||||
if self.input.pressed(Key::W) {
|
||||
self.game.player.vspeed = -10.0;
|
||||
}
|
||||
let terminal_velocity = 60.0;
|
||||
self.game.player.vspeed = self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue