diff --git a/assets/cursor.png b/assets/cursor.png new file mode 100644 index 0000000..c3fb5c2 Binary files /dev/null and b/assets/cursor.png differ diff --git a/core/src/com/redstrate/watersymbol/screens/GameScreen.java b/core/src/com/redstrate/watersymbol/screens/GameScreen.java index a560ec7..d1baf22 100644 --- a/core/src/com/redstrate/watersymbol/screens/GameScreen.java +++ b/core/src/com/redstrate/watersymbol/screens/GameScreen.java @@ -52,6 +52,9 @@ public class GameScreen implements Screen { boolean currentlyAwaitingAuxilaryAction = false; + int cursorX = 0, cursorY = 0; + Texture cursorTexture; + private Stage stage; private Table table; @@ -104,6 +107,7 @@ public class GameScreen implements Screen { playerIdleAnimation = new Animation(0.500f, new TextureAtlas("player-idle.atlas").getRegions(), Animation.PlayMode.LOOP_PINGPONG); arrowSpritesheet = new ArrowSpritesheet(); + cursorTexture = new Texture("cursor.png"); stage = new Stage(); Gdx.input.setInputProcessor(stage); @@ -150,6 +154,8 @@ public class GameScreen implements Screen { getNextUnit(); if(currentUnit != null) { + cursorX = currentUnit.positionX; + cursorY = currentUnit.positionY; smoothlyTransitionCamera(new Vector3(currentUnit.positionX * 16, currentUnit.positionY * 16, 0)); } } @@ -666,6 +672,8 @@ public class GameScreen implements Screen { } } + game.batch.draw(cursorTexture, cursorX * 16, cursorY * 16); + game.batch.end(); }