Esempio n. 1
0
        public ElectricBat(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 20, 40)
        {
            movementStartTime = new TimeSpan(0, 0, 1);
            ElementType       = Element.Lightning;
            SpawnPoint        = initialPos;
            Personality       = new PseudoWanderPersonality(this);
            Scale             = .5f;

            This.Game.AudioManager.AddSoundEffect("Effects/Bat_Move");
            if (MovementAudioName == null)
            {
                MovementAudioName = "Effects/Bat_Move";
                This.Game.AudioManager.InitializeLoopingSoundEffect(MovementAudioName, .05f);
            }

            isDieEffectEnabled = true;
        }
Esempio n. 2
0
        public ElectricBat(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 20, 40)
        {
            movementStartTime = new TimeSpan(0, 0, 1);
            ElementType = Element.Lightning;
            SpawnPoint = initialPos;
            Personality = new PseudoWanderPersonality(this);
            Scale = .5f;

            This.Game.AudioManager.AddSoundEffect("Effects/Bat_Move");
            if (MovementAudioName == null)
            {
                MovementAudioName = "Effects/Bat_Move";
                This.Game.AudioManager.InitializeLoopingSoundEffect(MovementAudioName, .05f);
            }

            isDieEffectEnabled = true;
        }