From cc07e4d91948b231b693e524158bc0aba71fa4d2 Mon Sep 17 00:00:00 2001 From: Armin Benz Date: Fri, 5 May 2017 18:03:53 +0200 Subject: [PATCH] =?UTF-8?q?wieder=20den=20einfachen=20Sprung=20eingef?= =?UTF-8?q?=C3=BChrt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gameentities/controller/RunBottomPlayerController.java | 4 ++-- .../gameentities/controller/RunTopPlayerController.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunBottomPlayerController.java b/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunBottomPlayerController.java index daea3d1..b25119a 100644 --- a/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunBottomPlayerController.java +++ b/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunBottomPlayerController.java @@ -16,14 +16,14 @@ public class RunBottomPlayerController extends AbstractPlayerController { @Override public void update(float delta) { boolean down = Gdx.input.isKeyPressed(Input.Keys.SPACE) || Gdx.input.isTouched(); - +/* if (!down && isJumping) { if (Player.velocity.y > 0) Player.velocity.y = 0; isJumping = false; } if (! down) isJumping = false; - +*/ Player.velocity.y -= GRAVITY_FORCE * delta; if (Player.velocity.y < -TERMINAL_VELOCITY) { diff --git a/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunTopPlayerController.java b/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunTopPlayerController.java index 48b0c86..7f2e477 100644 --- a/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunTopPlayerController.java +++ b/core/src/de/samdev/colorrunner/game/world/entities/gameentities/controller/RunTopPlayerController.java @@ -16,14 +16,14 @@ public class RunTopPlayerController extends AbstractPlayerController { @Override public void update(float delta) { boolean down = Gdx.input.isKeyPressed(Input.Keys.SPACE) || Gdx.input.isTouched(); - +/* if (!down && isJumping) { if (Player.velocity.y < 0) Player.velocity.y = 0; isJumping = false; } if (! down) isJumping = false; - +*/ Player.velocity.y += GRAVITY_FORCE * delta; if (Player.velocity.y > TERMINAL_VELOCITY) {