Пример #1
0
        public override void Load()
        {
            if (!isHighLvl)
            {
                LoadMapData(1, "Stages\\Stage2_Easy.txt", 0, 0);
                SoundControl.IniMusic("Audio\\BGM\\cave", true);
            }
            else
            {
                LoadMapData(1, "Stages\\Stage2_Hard.txt", 0, 0);
                SoundControl.IniMusic("Audio\\BGM\\ice", true);
            } SoundControl.musicInstance.IsLooped = true;

            player = new Player(this, 100, 100, 48, 48, 10);
            characters.Add(player);
            sword = player.sword;
            weapons.Add(sword);
            boss = new Fuujin(this, 14500, 100, 380, 310, 70, 0, 0, 1);//210, 210
            characters.Add(boss);

            SetTerrainDirection();
            SetWaterDirection();
            AddObjects();
            base.Load();

            if (!game.isMuted)
            {
                SoundControl.Play();
            }
        }
Пример #2
0
        // LoadMapDataの位置を変えたせいでbossのweaponのbulletなどを手動でobjectsに追加しなければならなくなった。なんと面倒なのか
        public override void Load()
        {
            LoadMapData(1, "BossTest.txt", 0, 0);

            player = new Player(this, 100, 100, 48, 48, 0);
            characters.Add(player);
            this.sword = player.sword; //new Sword(this, player, 200, 100, 64, 8, 0);
            weapons.Add(sword);        // 今度はここがライバルの...?? raibal.csでは2つ入っててusersも正常、しかしここでは何故? ここに示されるのは過去の情報?
            //boss = new Raijin(this, 500, 50, 210, 210, 50);//210, 210
            //boss = new Rival(this, 600, 300, 60, 60, 50, 0, 1, 1);    // 100だとBackWArd()のときに、defPosを通過しようとして死ぬ
            boss = new Fuujin(this, 500, 100, 210, 210, 50, 0, 5, 1); //380, 310
            characters.Add(boss);
            bossLocation = boss.position + new Vector2(-640, 0);
            //objects.Add(player);
            //objects.Add(sword);
            //objects.Add(boss);
            AddObjects();
            SetTerrainDirection();
            base.Load();

            foreach (Weapon weapon in weapons)
            {
                if (weapon is Turret)
                {
                    weapon.Load(game.Content, "Object\\Turret&Bullet" + "\\" + "windTurret2");
                }
            }
        }
Пример #3
0
        public override void Load()
        {
            if (!isHighLvl) {
                LoadMapData(1, "Stages\\Stage2_Easy.txt", 0, 0);
                SoundControl.IniMusic("Audio\\BGM\\cave", true);
            } else {
                LoadMapData(1, "Stages\\Stage2_Hard.txt", 0, 0);
                SoundControl.IniMusic("Audio\\BGM\\ice", true);
            } SoundControl.musicInstance.IsLooped = true;

            player = new Player(this, 100, 100, 48, 48, 10);
            characters.Add(player);
            sword = player.sword;
            weapons.Add(sword);
            boss = new Fuujin(this, 14500, 100, 380, 310, 70, 0, 0, 1);//210, 210
            characters.Add(boss);

            SetTerrainDirection();
            SetWaterDirection();
            AddObjects();
            base.Load();

            if (!game.isMuted) SoundControl.Play();
        }
Пример #4
0
        // LoadMapDataの位置を変えたせいでbossのweaponのbulletなどを手動でobjectsに追加しなければならなくなった。なんと面倒なのか
        public override void Load()
        {
            LoadMapData(1, "BossTest.txt", 0, 0);

            player = new Player(this, 100, 100, 48, 48, 0);
            characters.Add(player);
            this.sword = player.sword;//new Sword(this, player, 200, 100, 64, 8, 0);
            weapons.Add(sword);// 今度はここがライバルの...?? raibal.csでは2つ入っててusersも正常、しかしここでは何故? ここに示されるのは過去の情報?
            //boss = new Raijin(this, 500, 50, 210, 210, 50);//210, 210
            //boss = new Rival(this, 600, 300, 60, 60, 50, 0, 1, 1);    // 100だとBackWArd()のときに、defPosを通過しようとして死ぬ
            boss = new Fuujin(this, 500, 100, 210, 210, 50, 0, 5, 1); //380, 310
            characters.Add(boss);
            bossLocation = boss.position + new Vector2(-640, 0);
            //objects.Add(player);
            //objects.Add(sword);
            //objects.Add(boss);
            AddObjects();
            SetTerrainDirection();
            base.Load();

            foreach (Weapon weapon in weapons) {
                if(weapon is Turret)                        weapon.Load(game.Content, "Object\\Turret&Bullet" + "\\" + "windTurret2");
            }
        }