示例#1
0
文件: Golem.cs 项目: nemec/4Realms
        public Golem(string name, Vector2 initialPos, int health, List<String> anims = null)
            : base(name, new Actor(anims == null ? Animations : anims), 1, health)
        {
            movementStartTime = new TimeSpan(0, 0, 1);
            Personality = new SentinelPersonality(this);
            ElementType = Element.Normal;
            SpawnPoint = initialPos;
            This.Game.AudioManager.AddSoundEffect("Effects/Golem_Attack");
            This.Game.AudioManager.AddSoundEffect("Effects/Golem_Move");
            MovementAudioName = "Effects/Golem_Move";
            This.Game.AudioManager.InitializeLoopingSoundEffect(MovementAudioName);

            isDieEffectEnabled = true;
        }
示例#2
0
文件: Golem.cs 项目: nemec/4Realms
        public Golem(string name, Vector2 initialPos, int health, List <String> anims = null)
            : base(name, new Actor(anims == null ? Animations : anims), 1, health)
        {
            movementStartTime = new TimeSpan(0, 0, 1);
            Personality       = new SentinelPersonality(this);
            ElementType       = Element.Normal;
            SpawnPoint        = initialPos;
            This.Game.AudioManager.AddSoundEffect("Effects/Golem_Attack");
            This.Game.AudioManager.AddSoundEffect("Effects/Golem_Move");
            MovementAudioName = "Effects/Golem_Move";
            This.Game.AudioManager.InitializeLoopingSoundEffect(MovementAudioName);

            isDieEffectEnabled = true;
        }