Ejemplo n.º 1
0
        int timeUntilRemove = 2; // # of frames

        #endregion Fields

        #region Constructors

        public TeslaZap(TeslaZapInfo info, ProjectileArgs args)
        {
            Args = args;
            var bright = SequenceProvider.GetSequence("litning", "bright");
            var dim = SequenceProvider.GetSequence("litning", "dim");

            for (var n = 0; n < numZaps; n++)
                renderables.AddRange(DrawZapWandering(args.src, args.dest, n == numZaps - 1 ? bright : dim));
        }
Ejemplo n.º 2
0
        int timeUntilRemove = 2; // # of frames

        #endregion Fields

        #region Constructors

        public TeslaZap(TeslaZapInfo info, ProjectileArgs args)
        {
            Args = args;
            var bright = SequenceProvider.GetSequence(info.Image, "bright");
            var dim = SequenceProvider.GetSequence(info.Image, "dim");

            for( var n = 0; n < info.DimZaps; n++ )
                renderables.AddRange(DrawZapWandering(args.src, args.dest, dim));
            for( var n = 0; n < info.BrightZaps; n++ )
                renderables.AddRange(DrawZapWandering(args.src, args.dest, bright));
        }
Ejemplo n.º 3
0
		public TeslaZap(TeslaZapInfo info, ProjectileArgs args)
		{
			this.args = args;
			this.info = info;
		}
Ejemplo n.º 4
0
 public TeslaZap(TeslaZapInfo info, ProjectileArgs args)
 {
     Args = args;
     Info = info;
 }
Ejemplo n.º 5
0
 public TeslaZap(TeslaZapInfo info, ProjectileArgs args)
 {
     this.args = args;
     this.info = info;
     this.timeUntilRemove = info.Duration;
 }