summaryrefslogtreecommitdiff
path: root/src/main/kotlin/de/romjaki/pluggabledino/game
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2019-01-16 19:24:44 +0100
committerromangraef <romangraef@loves.dicksinhisan.us>2019-01-16 19:24:44 +0100
commitf872cabbe7e4a3eda2aaff9bff8616e62c2d4ff4 (patch)
tree29247c550887479d4d58880908f9ea5b22a85294 /src/main/kotlin/de/romjaki/pluggabledino/game
parente5aca456e5ee2dd4d8c151b86c9de419f7b994c4 (diff)
downloadpluggabledino-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')
-rw-r--r--src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt4
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