From f872cabbe7e4a3eda2aaff9bff8616e62c2d4ff4 Mon Sep 17 00:00:00 2001 From: romangraef Date: Wed, 16 Jan 2019 19:24:44 +0100 Subject: Emulator Signed-off-by: romangraef --- src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/de/romjaki/pluggabledino/game/GameWorld.kt') 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 -- cgit