コード例 #1
0
ファイル: CrystalMan.cs プロジェクト: nemec/4Realms
        public Crystal(string name, Vector2 initialPosition, int health, CrystalMan master)
            : base(name, new Actor(Animations), 1, health)
        {
            this.master = master;
            SpawnPoint = initialPosition;
            GroundPos = SpawnPoint;
            Scale = 1.25f;

            HealthChanged += new HealthChangedHandler(delegate(object o, int value)
            {
                if (Health == 0)
                {
                    State = SpriteState.Dead;
                }
                else if (Health <= MaxHealth * 0.5)
                {
                    for (int x = 0; x < 7; x++)
                    {
                        mActor.Animations[x] = mActor.Animations[x + 7];
                    }
                    // REPLACE TO BROKEN ANIMATIONS HERE
                    mActor.Animations[19] = mActor.Animations[20];
                }
            });
        }
コード例 #2
0
ファイル: CrystalMan.cs プロジェクト: nemec/4Realms
        public Crystal(string name, Vector2 initialPosition, int health, CrystalMan master)
            : base(name, new Actor(Animations), 1, health)
        {
            this.master = master;
            SpawnPoint  = initialPosition;
            GroundPos   = SpawnPoint;
            Scale       = 1.25f;

            HealthChanged += new HealthChangedHandler(delegate(object o, int value)
            {
                if (Health == 0)
                {
                    State = SpriteState.Dead;
                }
                else if (Health <= MaxHealth * 0.5)
                {
                    for (int x = 0; x < 7; x++)
                    {
                        mActor.Animations[x] = mActor.Animations[x + 7];
                    }
                    // REPLACE TO BROKEN ANIMATIONS HERE
                    mActor.Animations[19] = mActor.Animations[20];
                }
            });
        }
コード例 #3
0
 internal ShiningPersonality(Enemies.CrystalMan master)
 {
     this.master = master;
     mStates     = States().GetEnumerator();
     This.Game.AudioManager.AddBackgroundMusic("Music/CrystalBossBG");
 }
コード例 #4
0
ファイル: Personality.cs プロジェクト: nemec/4Realms
 internal ShiningPersonality(Enemies.CrystalMan master)
 {
     this.master = master;
     mStates = States().GetEnumerator();
     This.Game.AudioManager.AddBackgroundMusic("Music/CrystalBossBG");
 }