예제 #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;
        }