public void Draw(SceneGame scene, DrawPass pass)
        {
            var heart   = SpriteLoader.Instance.AddSprite("content/heart");
            var basePos = GetBase();
            var tipPos  = GetTip();

            scene.FlushSpriteBatch();
            scene.DrawGrappleLine(basePos, tipPos, VisualAmplitude(), scene.Frame * 0.1f, 8, 100, LerpHelper.QuarticOut, new Color(255, 128, 128), scene.NonPremultiplied);
            if (HasHeart)
            {
                scene.DrawSpriteExt(heart, 0, tipPos - heart.Middle, heart.Middle, 0, SpriteEffects.None, 0);
            }
        }
예제 #2
0
        public void Draw(SceneGame scene, DrawPass pass)
        {
            var tile   = Curio.GetMainTile();
            var shadow = SpriteLoader.Instance.AddSprite("content/ring_shadow");

            if (pass == DrawPass.EffectLow)
            {
                scene.FlushSpriteBatch();
                scene.DrawCircle(shadow, SamplerState, Curio.GetVisualTarget(), 20, 0, MathHelper.TwoPi, 12, 0, 1, 0, 1, ColorMatrix.Tint(Color.Black), scene.NonPremultiplied);
            }
            if (pass == DrawPass.EffectLowAdditive)
            {
                scene.SpriteBatch.Draw(scene.Pixel, tile.VisualPosition, new Rectangle(0, 0, 16, 16), new Color(159, 74, 153, 32));
            }
        }