示例#1
0
 public WalkthroughForm(int idCol, int idSkin, int idWeapon)
 {
     InitializeComponent();
     LoadBackGround();
     InitCollecion(idCol);
     InitPlayer(idSkin);
     InitMonster();
     ManageUserAction.UpdateGameMainFlashCards();
     InitQuiz();
     LoadingMusic();
     timerUpdate.Start();
     isGameOver           = false;
     currentHealth        = player.Health;
     isCorrect            = -1;
     isFinalRound         = false;
     turn                 = 0;
     pnlQuestion.Location = new Point(Screen.PrimaryScreen.Bounds.Width / 2 - pnlQuestion.Width / 2, Screen.PrimaryScreen.Bounds.Height / 2 - pnlQuestion.Height / 2 - 100);
     this.idSkin          = idSkin;
     this.idWeapon        = idWeapon;
     pnlInfo.Location     = new Point(Screen.PrimaryScreen.Bounds.Width - 20 - pnlInfo.Size.Width, 20);
 }