Ejemplo n.º 1
0
        public void LoadTutorialLevel(int index)
        {
            string path = "Tutorial";

            totems[0] = new Totem();
            totems[0].BuildFromFile(path + "/Tutorial_1");
            totems[1] = new Totem();
            totems[1].BuildFromFile(path + "/Tutorial_2");
            totems[2] = new Totem();
            totems[2].BuildFromFile(path + "/Tutorial_3");

            totems[0].HidePowerUp();
            totems[1].HidePowerUp();
            totems[2].HidePowerUp();

            int maxIndex = 3;

            if (index == 0)
            {
                maxIndex = 2;
            }
            for (int i = 0; i < maxIndex; ++i)
            {
                SoundEffectInstance musicL1 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L1").CreateInstance();
                SoundEffectInstance musicL2 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L2").CreateInstance();
                SoundEffectInstance musicL3 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L3").CreateInstance();
                SoundEffectInstance musicL4 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L4").CreateInstance();
                musics[i] = new DynamicMusic(musicL1, musicL2, musicL3, musicL4);
            }

            PlaceTotems();
        }
Ejemplo n.º 2
0
        public void LoadRandomLevel()
        {
            totems[0] = new Totem();
            totems[0].AddSections(new SectionData(typeof(NormalSection), 0, 0, 10));
            totems[0].AddSections(new SectionData(typeof(MetalSection), 8, 8, 4));
            totems[0].AddSections(new SectionData(typeof(SpikeSection), 4, 4, 2));
            totems[0].BuildRandom();

            totems[1] = new Totem();
            totems[1].AddSections(new SectionData(typeof(NormalSection), 0, 0, 10));
            totems[1].AddSections(new SectionData(typeof(MetalSection), 8, 8, 4));
            totems[1].AddSections(new SectionData(typeof(SpikeSection), 4, 4, 2));
            totems[1].BuildRandom();

            totems[2] = new Totem();
            totems[2].AddSections(new SectionData(typeof(NormalSection), 0, 0, 10));
            totems[2].AddSections(new SectionData(typeof(MetalSection), 8, 8, 4));
            totems[2].AddSections(new SectionData(typeof(SpikeSection), 4, 4, 2));
            totems[2].BuildRandom();

            for (int i = 0; i < 3; ++i)
            {
                SoundEffectInstance musicL1 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L1").CreateInstance();
                SoundEffectInstance musicL2 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L2").CreateInstance();
                SoundEffectInstance musicL3 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L3").CreateInstance();
                SoundEffectInstance musicL4 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L4").CreateInstance();
                musics[i] = new DynamicMusic(musicL1, musicL2, musicL3, musicL4);
            }

            PlaceTotems();
        }
Ejemplo n.º 3
0
        public void LoadTutorialLevel(int index)
        {
            string path = "Tutorial";

            totems[0] = new Totem();
            totems[0].BuildFromFile(path + "/Tutorial_1");
            totems[1] = new Totem();
            totems[1].BuildFromFile(path + "/Tutorial_2");
            totems[2] = new Totem();
            totems[2].BuildFromFile(path + "/Tutorial_3");

            totems[0].HidePowerUp();
            totems[1].HidePowerUp();
            totems[2].HidePowerUp();

            int maxIndex = 3;
            if (index == 0)
                maxIndex = 2;
            for (int i = 0; i < maxIndex; ++i)
            {
                SoundEffectInstance musicL1 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L1").CreateInstance();
                SoundEffectInstance musicL2 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L2").CreateInstance();
                SoundEffectInstance musicL3 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L3").CreateInstance();
                SoundEffectInstance musicL4 = SoundEffectLibrary.Get("music_T" + index + "P" + (i + 1) + "L4").CreateInstance();
                musics[i] = new DynamicMusic(musicL1, musicL2, musicL3, musicL4);
            }

            PlaceTotems();
        }
Ejemplo n.º 4
0
        public void LoadRandomLevel()
        {
            totems[0] = new Totem();
            totems[0].AddSections(new SectionData(typeof(NormalSection), 0, 0, 10));
            totems[0].AddSections(new SectionData(typeof(MetalSection), 8, 8, 4));
            totems[0].AddSections(new SectionData(typeof(SpikeSection), 4, 4, 2));
            totems[0].BuildRandom();

            totems[1] = new Totem();
            totems[1].AddSections(new SectionData(typeof(NormalSection), 0, 0, 10));
            totems[1].AddSections(new SectionData(typeof(MetalSection), 8, 8, 4));
            totems[1].AddSections(new SectionData(typeof(SpikeSection), 4, 4, 2));
            totems[1].BuildRandom();

            totems[2] = new Totem();
            totems[2].AddSections(new SectionData(typeof(NormalSection), 0, 0, 10));
            totems[2].AddSections(new SectionData(typeof(MetalSection), 8, 8, 4));
            totems[2].AddSections(new SectionData(typeof(SpikeSection), 4, 4, 2));
            totems[2].BuildRandom();

            for (int i = 0; i < 3; ++i)
            {
                SoundEffectInstance musicL1 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L1").CreateInstance();
                SoundEffectInstance musicL2 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L2").CreateInstance();
                SoundEffectInstance musicL3 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L3").CreateInstance();
                SoundEffectInstance musicL4 = SoundEffectLibrary.Get("music_T1P" + (i + 1) + "L4").CreateInstance();
                musics[i] = new DynamicMusic(musicL1, musicL2, musicL3, musicL4);
            }

            PlaceTotems();
        }