Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.badlogic.gdx.graphics.Texture;
- import com.badlogic.gdx.graphics.g2d.SpriteBatch;
- public class EnemyCharacter {
- public int Cha;
- public Texture image=new Texture("knighttest.png");;
- //SpriteBatch batch;
- public int locX2;
- public int locY2;
- public int hp;
- public int energy;
- public void render(SpriteBatch batch,EnemyCharacter activeEnemy){
- hp=100;
- if(hp>0)
- batch.draw(this.image, locX2, locY2, 16, 16);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement