summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-17 16:43:26 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-17 16:43:26 +0200
commit548d25b10a2e049bf13b80a111df351fa7d5e6e1 (patch)
tree45fb0f894496e3f35af4b372e44f60388d71be23 /core/src/ch/asynk/tankontank
parent79561b976aa7fc4d85a795a5895abf95c19224ca (diff)
downloadRustAndDust-548d25b10a2e049bf13b80a111df351fa7d5e6e1.zip
RustAndDust-548d25b10a2e049bf13b80a111df351fa7d5e6e1.tar.gz
GameScreen: disable blocked and input delay for now
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/screens/GameScreen.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/core/src/ch/asynk/tankontank/screens/GameScreen.java b/core/src/ch/asynk/tankontank/screens/GameScreen.java
index c9cf00e..ebe825a 100644
--- a/core/src/ch/asynk/tankontank/screens/GameScreen.java
+++ b/core/src/ch/asynk/tankontank/screens/GameScreen.java
@@ -52,8 +52,8 @@ public class GameScreen implements Screen
private final TankOnTank game;
private Ctrl ctrl;
- private boolean blocked;
- private float inputDelay = 0f;
+ // private boolean blocked;
+ // private float inputDelay = 0f;
private Vector2 dragPos = new Vector2();
private Vector3 touchPos = new Vector3();
private Vector2 screenToWorld = new Vector2();
@@ -96,8 +96,8 @@ public class GameScreen implements Screen
cam.zoom -= ZOOM_GESTURE_FACTOR;
cam.zoom = MathUtils.clamp(cam.zoom, ZOOM_IN_MAX, maxZoomOut);
clampCameraPos();
- blocked = true;
- inputDelay = INPUT_DELAY;
+ // blocked = true;
+ // inputDelay = INPUT_DELAY;
return true;
}
}));
@@ -110,15 +110,15 @@ public class GameScreen implements Screen
dragPos.set(x, y);
cam.translate(-deltaX, -deltaY, 0);
clampCameraPos();
- blocked = true;
- inputDelay = INPUT_DELAY;
+ // blocked = true;
+ // inputDelay = INPUT_DELAY;
return true;
}
@Override
public boolean touchDown(int x, int y, int pointer, int button)
{
- if (inputDelay > 0f) return true;
- blocked = false;
+ // if (inputDelay > 0f) return true;
+ // blocked = false;
if (button == Input.Buttons.LEFT) {
dragPos.set(x, y);
if (ctrl.mayProcessTouch()) {
@@ -134,7 +134,7 @@ public class GameScreen implements Screen
@Override
public boolean touchUp(int x, int y, int pointer, int button)
{
- if (blocked) return true;
+ // if (blocked) return true;
if (button == Input.Buttons.LEFT) {
if (ctrl.mayProcessTouch()) {
unprojectToHud(x, y, touchPos);
@@ -144,8 +144,8 @@ public class GameScreen implements Screen
}
}
}
- blocked = true;
- inputDelay = INPUT_DELAY;
+ // blocked = true;
+ // inputDelay = INPUT_DELAY;
return true;
}
@Override
@@ -154,8 +154,8 @@ public class GameScreen implements Screen
cam.zoom += amount * ZOOM_SCROLL_FACTOR;
cam.zoom = MathUtils.clamp(cam.zoom, ZOOM_IN_MAX, maxZoomOut);
clampCameraPos();
- blocked = true;
- inputDelay = INPUT_DELAY;
+ // blocked = true;
+ // inputDelay = INPUT_DELAY;
return true;
}
});
@@ -188,8 +188,8 @@ public class GameScreen implements Screen
@Override
public void render(float delta)
{
- if (inputDelay > 0f)
- inputDelay -= delta;
+ // if (inputDelay > 0f)
+ // inputDelay -= delta;
Gdx.gl.glClearColor(0, 0, 0, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);