master
GammelJan 6 years ago
parent dfb1b048fe
commit 049877fb74

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

@ -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

@ -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];

Loading…
Cancel
Save