Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2.  
  3.  
  4. import com.badlogic.gdx.graphics.Texture;
  5. import com.badlogic.gdx.graphics.g2d.SpriteBatch;
  6.  
  7. public class EnemyCharacter {
  8. public int Cha;
  9. public Texture image=new Texture("knighttest.png");;
  10. //SpriteBatch batch;
  11. public int locX2;
  12. public int locY2;
  13. public int hp;
  14. public int energy;
  15.  
  16. public void render(SpriteBatch batch,EnemyCharacter activeEnemy){
  17. hp=100;
  18.  
  19.  
  20. if(hp>0)
  21. batch.draw(this.image, locX2, locY2, 16, 16);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement