예제 #1
0
        public void Draw(LineSegmentF rayBarrel)
        {
            SimpleGunDrawModule.DrawSimpleGun(rayBarrel, (int)Kick);

            Effects.ColorEffect(new Vector4(1f, 1f, 1f, Light));
            Game1.SpriteBatchGlobal.Draw(Game1.muzzleSimple, rayBarrel.End, origin: new Vector2(0, 19f), rotation: rayBarrel.ToAngle());
            Effects.ResetEffect3D();
        }
예제 #2
0
        new public void Draw(LineSegmentF rayBarrel)
        {
            SimpleGunDrawModule.DrawPlasmaGun(rayBarrel, (int)OffsetKick);

            Effects.ColorEffect(new Vector4(1f, 1f, 1f, _muzzleAlpha));
            Game1.SpriteBatchGlobal.Draw(Game1.muzzlePlasma, rayBarrel.End, scale: new Vector2(1), origin: new Vector2(0, 19f), rotation: rayBarrel.ToAngle());
            Game1.EffectBaseColor.CurrentTechnique.Passes[0].Apply();
        }
예제 #3
0
        new public void Draw(LineSegmentF rayBarrel)
        {
            SimpleGunDrawModule.DrawRocketGun(rayBarrel, (int)OffsetKick);

            Effects.ColorEffect(new Vector4(1f, 1f, 1f, _muzzleAlpha));
            Game1.SpriteBatchGlobal.Draw(Game1.rocketLauncherFlame, rayBarrel.Start.ShiftOverDistance(-64 - OffsetKick, rayBarrel.ToAngle()), scale: new Vector2((2 - _muzzleAlpha * 2), 1), origin: new Vector2(0, 22), rotation: (float)(rayBarrel.ToAngle() - Math.PI));
            Game1.EffectBaseColor.CurrentTechnique.Passes[0].Apply();
        }
예제 #4
0
        new public void Draw(LineSegmentF rayBarrel)
        {
            if (Ammo > 0)
            {
                if (_IsOn)
                {
                    if (_line != null)
                    {
                        Game1.SpriteBatchGlobal.Draw(Game1.debug_longTex, rayBarrel.End, null,
                                                     new Rectangle(0, 0, (int)(_line.Lenght().Value - GunBarrel), 8),
                                                     new Vector2(0, 4),
                                                     _rotation, new Vector2(1, (float)(Math.Sin(Game1.Time * _timeMultiplier) * 0.5f) + 1), Color.Red, SpriteEffects.None);

                        Game1.SpriteBatchGlobal.Draw(Game1.laserDest, _line.End, origin: new Vector2(64), scale: new Vector2((float)(Math.Sin(Game1.Time * _timeMultiplier) * 0.2f) + 0.5f), color: Color.White);
                    }
                }
            }

            SimpleGunDrawModule.DrawLaserGun(rayBarrel, (int)OffsetKick);
        }
예제 #5
0
 new public void DrawNormal(LineSegmentF rayBarrel)
 {
     SimpleGunDrawModule.DrawLaserGunNormal(rayBarrel, (int)OffsetKick);
 }
예제 #6
0
 public void DrawNormal(LineSegmentF rayBarrel)
 {
     SimpleGunDrawModule.DrawSimpleGunNormal(rayBarrel, (int)Kick);
     Effects.ResetEffect3D();
 }
예제 #7
0
 new public void Draw(LineSegmentF rayBarrel)
 {
     SimpleGunDrawModule.DrawEnergyGun(rayBarrel, (int)OffsetKick);
 }
예제 #8
0
 public void Draw(LineSegmentF raybarrel)
 {
     SimpleGunDrawModule.DrawLightningGun(raybarrel, (int)OffsetKick);
 }