Esempio n. 1
0
        public Wasp(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 1, 75)
        {
            SpawnPoint = initialPos;
            movementStartTime = new TimeSpan(0, 0, 1);
            Personality = new DartPersonality(this);
            ElementType = Element.Normal;

            This.Game.AudioManager.AddSoundEffect("Effects/Earth_T1");
            This.Game.AudioManager.AddSoundEffect("Effects/Wasp_Move");
            if (MovementAudioName == null)
            {
                //MovementAudioName = "Effects/Wasp_Move";
                //This.Game.AudioManager.InitializeLoopingSoundEffect(MovementAudioName);
            }

            isDieEffectEnabled = true;
        }
Esempio n. 2
0
        public Wasp(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 1, 75)
        {
            SpawnPoint        = initialPos;
            movementStartTime = new TimeSpan(0, 0, 1);
            Personality       = new DartPersonality(this);
            ElementType       = Element.Normal;

            This.Game.AudioManager.AddSoundEffect("Effects/Earth_T1");
            This.Game.AudioManager.AddSoundEffect("Effects/Wasp_Move");
            if (MovementAudioName == null)
            {
                //MovementAudioName = "Effects/Wasp_Move";
                //This.Game.AudioManager.InitializeLoopingSoundEffect(MovementAudioName);
            }

            isDieEffectEnabled = true;
        }