Example #1
0
 public override void Draw(SpriteBatch sprite, XNA.Color color, int xShift, int yShift)
 {
     XNA.Rectangle destinationRectangle = new XNA.Rectangle((int)X + xShift - Origin.X, (int)Y + yShift - Origin.Y, Width, Height);
     //if (baseInfo.Texture == null) baseInfo.CreateTexture(sprite.GraphicsDevice);
     sprite.Draw(BaseInfo.GetTexture(sprite), destinationRectangle, null, color, 0f, new XNA.Vector2(0f, 0f), Flip ? SpriteEffects.FlipHorizontally : SpriteEffects.None, 1f);
     base.Draw(sprite, color, xShift, yShift);
 }