// Draws an animated sprite from all it's variables information public void drawAnimatedSprite(AnimatedSprite s) { Rectangle destination = new Rectangle( (int) s.getPosition().X, (int) s.getPosition().Y, s.getFrameWidth(), s.getFrameHeight()); Rectangle source = new Rectangle(s.getFrameWidth() * s.getCurrentHorizontal(), s.getFrameHeight() * s.getCurrentVertical(), s.getFrameWidth(), s.getFrameHeight()); spriteBatch.Draw(s.getTexture(), destination, source, Color.White); }