Ejemplo n.º 1
0
        internal void ShowShockwave()
        {
            Sound.PlayArc();
            Sprite shockwave = new ShockWaveSprite(5, 20, 50, Color.DarkBlue, Color.LightBlue);

            shockwave.Position = Position;
            shockwave.Mover    = new SlaveMover(this);
            Engine?.AddSprite(shockwave);
        }
Ejemplo n.º 2
0
        private void Collide(Critter critter, EscapeHatch hatch)
        {
            Sound.PlayCheer();

            Sprite shockwaveCritter = new ShockWaveSprite(5, 20, 20, Color.DarkGreen, Color.LightGreen);

            shockwaveCritter.Position = critter.Position;
            AddSprite(shockwaveCritter);

            Sprite shockwaveHatch = new ShockWaveSprite(5, 30, 20, Color.DarkGreen, Color.LightGreen);

            shockwaveHatch.Position = hatch.Position;
            AddSprite(shockwaveHatch);

            critter.Escaped();

            CritterEscaped?.Invoke(this, new SpriteEventEscaped(critter));
        }