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(); }
private void frmPacmanGame_Load(object sender, EventArgs e) { game = new PacmanGame(this, pnlBoard); playSound(Properties.Resources.Pacman_Opening_Song); posSizeInit(); game.State = GameState.GAMEPAUSE; }