Ejemplo n.º 1
0
        public void NextChapter(EChapter chapter)
        {
            ClearChapter();
            switch (chapter)
            {
            case EChapter.Tutorial:
                chapterTutorial              = new ChapterTutorial(picBoxStage);
                GameSystem.player.HpChanged += OnPlayerHpChanged;
                GameSystem.player.Eat       += OnPlayerEat;
                chapterTutorial.ShowTip();
                chapterTutorial.Start();
                picBoxHelp_Click(picBoxHelp, EventArgs.Empty);
                MCImusic.mciMusic("Musics/S2.mp3", "play", "repeat");
                break;

            case EChapter.Survival:
                picBoxStage.Location = new Point(-GameSystem.screen.Width, -GameSystem.screen.Height);
                picBoxHpBar.Image    = Resources.Bloodbar5;
                picBoxEatBar.Image   = Resources.Progressbar0;
                NextTargetInMap("Mito");
                labelTime.Visible            = true;
                chapterSurvival              = new ChapterSurvival(picBoxStage);
                GameSystem.player.HpChanged += OnPlayerHpChanged;
                GameSystem.player.Eat       += OnPlayerEat;
                chapterSurvival.ShowTip();
                MCImusic.mciMusic("Musics/S2.mp3", "close");
                chapterSurvival.Start();
                MCImusic.mciMusic("Musics/3.mp3", "play", "repeat");
                break;
            }
        }
Ejemplo n.º 2
0
 public void ClearChapter()
 {
     chapterTutorial = null; chapterSurvival = null;
 }