diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2019-01-16 19:24:44 +0100 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2019-01-16 19:24:44 +0100 |
commit | f872cabbe7e4a3eda2aaff9bff8616e62c2d4ff4 (patch) | |
tree | 29247c550887479d4d58880908f9ea5b22a85294 /src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt | |
parent | e5aca456e5ee2dd4d8c151b86c9de419f7b994c4 (diff) | |
download | pluggabledino-f872cabbe7e4a3eda2aaff9bff8616e62c2d4ff4.tar.gz pluggabledino-f872cabbe7e4a3eda2aaff9bff8616e62c2d4ff4.tar.bz2 pluggabledino-f872cabbe7e4a3eda2aaff9bff8616e62c2d4ff4.zip |
Emulator
Signed-off-by: romangraef <romangraef@loves.dicksinhisan.us>
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 |