Z for jump
This commit is contained in:
parent
1bf7920d2f
commit
c43a1edb74
1 changed files with 2 additions and 1 deletions
|
@ -46,7 +46,8 @@ func (aw *Awakeman) Update() error {
|
||||||
aw.coyoteTimer--
|
aw.coyoteTimer--
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if aw.coyoteTimer > 0 && inpututil.IsKeyJustPressed(ebiten.KeySpace) {
|
// NB: spacebar sometimes does things on web pages (scrolls down)
|
||||||
|
if aw.coyoteTimer > 0 && (inpututil.IsKeyJustPressed(ebiten.KeySpace) || inpututil.IsKeyJustPressed(ebiten.KeyZ)) {
|
||||||
// Jump
|
// Jump
|
||||||
aw.vy = jumpVelocity
|
aw.vy = jumpVelocity
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue