示例#1
0
文件: Wasp.cs 项目: nemec/4Realms
        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;
        }
示例#2
0
文件: Wasp.cs 项目: nemec/4Realms
        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;
        }