Beispiel #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);
     }
 }
Beispiel #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);
     }
 }
Beispiel #3
0
 public void Draw(SpriteBatch sb)
 {
     texture.Draw(sb, position, Color.White);
 }
Beispiel #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);
 }