Example #1
0
 public virtual void Draw(SpriteBatch spriteBatch, float rotation)
 {
     spriteBatch.Draw(Texture, RotationCenter + TexturePosition, null, Color.White, rotation - RotationZero.Angle(), RotationCenter, 1f, SpriteEffects.None, 0f);
 }
Example #2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     Animations[currentAnimation].Draw(spriteBatch, this.TexturePosition, Color.White, Rotation.Angle() - RotationZero.Angle());
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="spriteBatch"></param>
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(Texture, TexturePosition + RotationCenter, null, Color.White, Rotation.Angle() - RotationZero.Angle(), RotationCenter, 1f, SpriteEffects.None, 0f);
 }