示例#1
0
 public void Draw(SpriteBatch sb)
 {
     if (isNormal)
     {
         normalSprite.Draw(sb, position, Color.White, 0, Vector2.Zero, Vector2.One, (flipped ? SpriteEffects.FlipHorizontally : SpriteEffects.None), 1);
     }
     else
     {
         flySprite.Draw(sb, position, Color.White, 0, Vector2.Zero, Vector2.One, (flipped ? SpriteEffects.FlipHorizontally : SpriteEffects.None), 1);
     }
 }
示例#2
0
 public void Draw(SpriteBatch sb)
 {
     if (!hit)
     {
         normalTexture.Draw(sb, position, Color.White);
     }
     else
     {
         hitTexture.Draw(sb, position, Color.White);
         sb.DrawString(font, message, new Vector2(position.X - longestLine * 4.9F, position.Y - 26 * newLines), Color.White);
     }
 }
示例#3
0
 public void Draw(SpriteBatch sb)
 {
     texture.Draw(sb, position, Color.White);
 }
示例#4
0
 public void Draw(SpriteBatch sb)
 {
     texture.Draw(sb, new Vector2(position.X + 24, position.Y + 24), Color.White, angle, new Vector2(24, 24), Vector2.One, Math.Abs(angle) > MathHelper.PiOver2 ? SpriteEffects.FlipVertically : SpriteEffects.None, 1);
 }