示例#1
0
文件: FireBat.cs 项目: nemec/4Realms
        public FireBat(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 2f, 40)
        {
            movementStartTime = new TimeSpan(0, 0, 1);
            ElementType = Element.Fire;
            SpawnPoint = initialPos;
            Personality = new DartWanderPersonality(this);
            Scale = .5f;

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

            isDieEffectEnabled = true;
        }
示例#2
0
文件: FireBat.cs 项目: nemec/4Realms
        public FireBat(string name, Vector2 initialPos)
            : base(name, new Actor(Animations), 2f, 40)
        {
            movementStartTime = new TimeSpan(0, 0, 1);
            ElementType       = Element.Fire;
            SpawnPoint        = initialPos;
            Personality       = new DartWanderPersonality(this);
            Scale             = .5f;

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

            isDieEffectEnabled = true;
        }