Пример #1
0
 private void frmPacmanGame_Load(object sender, EventArgs e)
 {
     game        = new PacmanGame(this, pnlBoard, pnlBoardInfo, difficulty, algorithm, pacmanDelay, ghostDelay, highScore);
     board       = new PacmanBoard(pnlBoard);
     this.Height = Screen.PrimaryScreen.Bounds.Height - 40;
     posSizeInit();
 }
Пример #2
0
 private void frmPacmanGame_Load(object sender, EventArgs e)
 {
     game = new PacmanGame(this, pnlBoard);
     playSound(Properties.Resources.Pacman_Opening_Song);
     posSizeInit();
     game.State = GameState.GAMEPAUSE;
 }