예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public override void Render(object sender, RenderData data)
        {
            base.Render(sender, data);

            Rectangle bounds = Bounds();
        }
예제 #4
0
 public void Render(object sender, RenderData data)
 {
 }
예제 #5
0
        public override void Render(object sender, RenderData data)
        {
            base.Render(sender, data);

            Rectangle bounds = Bounds();
        }
예제 #6
0
 public void Render(object sender, RenderData data)
 {
 }