Exemplo n.º 1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     if (stateMachine.getDirection() == Direction.MoveLeft)
     {
         spriteBatch.Draw(linkSpriteSheet, destination, source, Color.White, 0, new Vector2(0, 0), SpriteEffects.FlipHorizontally, 0f);
     }
     else
     {
         spriteBatch.Draw(linkSpriteSheet, destination, source, Color.White);
     }
     foreach (IProjectile projectile in stateMachine.getProjectiles())
     {
         projectile.Draw(spriteBatch);
     }
 }