summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/zproject/Board.java
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2018-07-06 14:07:42 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2018-07-06 14:07:42 +0200
commitcb3328fa808ddfb8d671a87f0747d7b1827f8074 (patch)
treefb3c932089d11ef1859da37505e0cb57f2e498d7 /core/src/ch/asynk/zproject/Board.java
parent620077ed656885cb558e5644c75a262346d512aa (diff)
downloadgdx-boardgame-cb3328fa808ddfb8d671a87f0747d7b1827f8074.zip
gdx-boardgame-cb3328fa808ddfb8d671a87f0747d7b1827f8074.tar.gz
Plugin a little demo with touch detiction
Diffstat (limited to 'core/src/ch/asynk/zproject/Board.java')
-rw-r--r--core/src/ch/asynk/zproject/Board.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/src/ch/asynk/zproject/Board.java b/core/src/ch/asynk/zproject/Board.java
index 22b7e74..b7e20b8 100644
--- a/core/src/ch/asynk/zproject/Board.java
+++ b/core/src/ch/asynk/zproject/Board.java
@@ -4,7 +4,9 @@ import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.utils.Disposable;
-public class Board implements Disposable
+import ch.asynk.zproject.engine.Touchable;
+
+public class Board implements Disposable, Touchable
{
private final Texture map;
@@ -18,6 +20,12 @@ public class Board implements Disposable
map.dispose();
}
+ @Override public boolean touch(float x, float y)
+ {
+ ZProject.debug("Board", String.format("touchDown : %f %f", x, y));
+ return true;
+ }
+
public int getWidth()
{
return map.getWidth();