public void Render(object sender, RenderData data) { return; Rectangle bounds = Bounds(); bounds.X -= (int)Viewport.Pos.X; bounds.Y -= (int)Viewport.Pos.Y; Color col = Color.Red; if (Ramp) { if (RampDir == Direction.West) { col = Color.Blue; } else if (RampDir == Direction.East) { col = Color.Green; } } if (JumpThrough) { col = Color.Pink; } data.SpriteBatch.Draw(Assets.Animations["tile-placeholder"].Frame(0).Texture, bounds, new Rectangle(0, 0, 1, 1), col, 0.0f, Vector2.Zero, SpriteEffects.None, 1.0f); }
public virtual void Render(object sender, RenderData data) { Sprite currentFrame = _animation.Frame(_frame); if (currentFrame == null) return; data.SpriteBatch.Draw(currentFrame.Texture, Pos - Viewport.Pos, currentFrame.Source, BlendColor, Rot, Origin, Vector2.One, (Flip ? SpriteEffects.FlipHorizontally : SpriteEffects.None), Depth); }
public override void Render(object sender, RenderData data) { base.Render(sender, data); Rectangle bounds = Bounds(); }
public void Render(object sender, RenderData data) { }