19202122232425
public SpriteAnimation(int xPos, int yPos, int animationSpeed) { this.xPos = xPos; this.yPos = yPos; timer = new TickTimer((short) animationSpeed); }
41424344454647
, spriteHeight); addSprite(textureRegion); } } timer = new TickTimer((short) animationSpeed); }
15161718192021
private TickTimer timer; private boolean play, loop; public SpriteAnimation(int animationSpeed) { timer = new TickTimer((short) animationSpeed); }
35363738394041