Guest User

Untitled

a guest
Oct 3rd, 2017
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1.  
  2. import com.badlogic.gdx.Gdx;
  3. import com.badlogic.gdx.Input;
  4. import com.badlogic.gdx.Input.Keys;
  5. import com.badlogic.gdx.graphics.Texture;
  6. import com.badlogic.gdx.graphics.g2d.SpriteBatch;
  7.  
  8. public class PlayerCharacter extends Creature {
  9.  
  10. public int Cha;
  11. public Texture image=new Texture("knighttest.png");;
  12. //SpriteBatch batch;
  13. public int locX;
  14. public int locY;
  15.  
  16.  
  17. //public Character(int str, int spd, int inte, int def, int luck, int maxhp,int Cha) {
  18. // super(str, spd, inte, def, luck, maxhp);
  19. // this.Cha = Cha;
  20. //}
  21.  
  22. public void render(SpriteBatch batch,PlayerCharacter activePlayer){
  23.  
  24. batch.draw(this.image, locX, locY, 16, 16);
  25.  
  26. }
  27. public void update(){
  28.  
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment