Beispiel #1
0
 //Run to start/reset the game
 public static void Start()
 {
     PlayerBoard = new Board(new Rectangle((screenWidth - (boardWidth * gridSize)) / 2,
             (screenHeight - (boardHeight * gridSize)) / 2, boardWidth * gridSize, boardHeight * gridSize));
     GameBoards.Add(PlayerBoard);
     gameState = GameState.Play;
     PlayerBoard.fillUpcomingPieces();
     PlayerBoard.changeCurrentPiece();
     Highscore.ReadFromFile();
 }