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)); } }
public override void Draw(SceneGame scene, DrawPass pass) { scene.SetupColorMatrix(ColorMatrix.HasValue ? ColorMatrix.Value : RoguelikeEngine.ColorMatrix.Identity, scene.WorldTransform, scene.Projection); scene.DrawCircle(Sprite, SamplerState, Position, Precision, AngleStart, AngleEnd, Radius, TexOffset, TexPrecision, Start, End); }
public override void Draw(SceneGame scene, DrawPass pass) { var ring = SpriteLoader.Instance.AddSprite("content/circle_shockwave"); scene.DrawCircle(ring, 0, Position, Size, Color); }