public SpriteAnimation(Sprite[] sprites, float frameDuration, float spriteWidth, float spriteHeight, int x, int y) {
		this.frames = sprites;
		this.spriteWidth = spriteWidth;
		this.spriteHeight = spriteHeight;
		this.frameDuration = frameDuration;

		for(Sprite s : frames) {
			s.setOrigin(spriteWidth / 2, spriteHeight / 2);
			s.setSize(spriteWidth, spriteHeight);
			s.setPosition(x, y);
		}
		isFacingRight = true;
	}