diff --git a/core/assets/AttackHori.png b/core/assets/AttackHori.png new file mode 100644 index 0000000..cd86984 Binary files /dev/null and b/core/assets/AttackHori.png differ diff --git a/core/assets/AttackVert.png b/core/assets/AttackVert.png new file mode 100644 index 0000000..c193821 Binary files /dev/null and b/core/assets/AttackVert.png differ diff --git a/core/src/com/dungeoncrawler/control/Controller.java b/core/src/com/dungeoncrawler/control/Controller.java index c460d5d..23f6662 100644 --- a/core/src/com/dungeoncrawler/control/Controller.java +++ b/core/src/com/dungeoncrawler/control/Controller.java @@ -9,6 +9,8 @@ import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.InputProcessor; +import com.badlogic.gdx.graphics.Texture; +import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.maps.MapLayers; import com.badlogic.gdx.maps.MapObjects; @@ -38,6 +40,11 @@ public class Controller extends ApplicationAdapter implements InputProcessor{ Entity[] arrows; + Texture verticalAttack; + Texture horizontalAttack; + Sprite verticalAttackSprite; + Sprite horizontalAttackSprite; + @Override diff --git a/core/src/com/dungeoncrawler/view/GameScreen.java b/core/src/com/dungeoncrawler/view/GameScreen.java index a7d6ff4..76eb00c 100644 --- a/core/src/com/dungeoncrawler/view/GameScreen.java +++ b/core/src/com/dungeoncrawler/view/GameScreen.java @@ -21,6 +21,11 @@ public class GameScreen { Sprite player; TextureRegion[][] regions; + Texture verticalAttack; + Texture horizontalAttack; + Sprite verticalAttackSprite; + Sprite horizontalAttackSprite; + //ENTITIES Texture[] entityTextures; Sprite[] entitySprites; @@ -48,6 +53,10 @@ public class GameScreen { player.setX(200); player.setY(200); + verticalAttack = new Texture("AttackHori.png"); + horizontalAttack = new Texture("AttackVert.png"); + verticalAttackSprite = new Sprite(verticalAttack); + //ENTITIES entityTextures = new Texture[5]; entitySprites = new Sprite[5];