diff options
Diffstat (limited to 'src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt')
-rw-r--r-- | src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt b/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt index 3775faa..687fe62 100644 --- a/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt +++ b/src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt @@ -147,8 +147,8 @@ class GameWorld : ContactListener { } - fun update(delta: Float, input: Input) { - if (input.isKeyDown(Input.KEY_UP)) { + fun update(delta: Float, tryJump: Boolean) { + if (tryJump) { tryJump() } delay -= delta |