public virtual void Draw(SpriteBatch sprite, int mapShiftX, int mapShiftY, int centerX, int centerY, int width, int height) { if (notAnimated) { if (frame0.X - mapShiftX + frame0.Width > 0 && frame0.Y - mapShiftY + frame0.Height > 0 && frame0.X - mapShiftX < width && frame0.Y - mapShiftY < height) { frame0.Draw(sprite, mapShiftX, mapShiftY, flip); } } else { GetCurrFrame().Draw(sprite, mapShiftX, mapShiftY, flip); } }
public virtual void Draw(SpriteBatch sprite) { if (notAnimated) { if (frame0.X - MapSimulator.mapShiftX + frame0.Width > 0 && frame0.Y - MapSimulator.mapShiftY + frame0.Height > 0 && frame0.X - MapSimulator.mapShiftX < MapSimulator.width && frame0.Y - MapSimulator.mapShiftY < MapSimulator.height) { frame0.Draw(sprite, flip); } } else { GetCurrFrame().Draw(sprite, flip); } }
public void Draw2D(SpriteBatch sprite, int x, int y, DXObject frame) { frame.Draw(sprite, x, y, Color, flip); }
public void Draw2D(SpriteBatch sprite, int x, int y, DXObject frame) { frame.Draw(sprite, x, y, Color, flip); }