Beispiel #1
0
        public Spider(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 1, 50)
        {
            SpawnPoint        = initialPos;
            movementStartTime = new TimeSpan(0, 0, 1);
            Personality       = new PulseChargePersonality(this);
            ElementType       = Element.Normal;
            Scale             = 1.0f;

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

            isDieEffectEnabled = true;
        }
Beispiel #2
0
        public Spider(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 1, 50)
        {
            SpawnPoint = initialPos;
            movementStartTime = new TimeSpan(0, 0, 1);
            Personality = new PulseChargePersonality(this);
            ElementType = Element.Normal;
            Scale = 1.0f;

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

            isDieEffectEnabled = true;
        }