示例#1
0
        new public void Draw()
        {
            Game1.SpriteBatchGlobal.Draw(Game1.projectilTex, _position, null, rotation: CompareF.VectorToAngle(_velocity), origin: new Vector2(20, 10));

            if (_InWater == false)
            {
                Effects.ColorEffect(new Vector4(1f, 1f, 1f, (float)Globals.GlobalRandom.NextDouble()));
                if (_InWater == false)
                {
                    Game1.SpriteBatchGlobal.Draw(Game1.FlameProjectile, null, new Rectangle(_position.ShiftOverDistance(20, (float)(CompareF.VectorToAngle(_velocity) + Math.PI)).ToPoint(), new Vector2(36 + Globals.GlobalRandom.Next(-16, 17), 16).ToPoint()), null, new Vector2(0, 8), (float)(CompareF.VectorToAngle(_velocity) + Math.PI), null, Color.White, SpriteEffects.None);
                }
                Effects.ResetEffect3D();
            }

            if (_wet == false)
            {
                _trail.Draw();
            }
        }
示例#2
0
 public override void Draw()
 {
     _trail.Draw();
 }