Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public override void Draw(SpriteBatch spriteBatch)
 {
     Animations[currentAnimation].Draw(spriteBatch, this.TexturePosition, Color.White, Rotation.Angle() - RotationZero.Angle());
 }
Exemplo n.º 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);
 }