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(); }
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(); }
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(); }
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); }
new public void DrawNormal(LineSegmentF rayBarrel) { SimpleGunDrawModule.DrawLaserGunNormal(rayBarrel, (int)OffsetKick); }
public void DrawNormal(LineSegmentF rayBarrel) { SimpleGunDrawModule.DrawSimpleGunNormal(rayBarrel, (int)Kick); Effects.ResetEffect3D(); }
new public void Draw(LineSegmentF rayBarrel) { SimpleGunDrawModule.DrawEnergyGun(rayBarrel, (int)OffsetKick); }
public void Draw(LineSegmentF raybarrel) { SimpleGunDrawModule.DrawLightningGun(raybarrel, (int)OffsetKick); }