示例#1
0
 public Game(Window window)
 {
     highScores = new int[10];
     TryLoadingHighscores();
     SetUpBackground();
     mainMenu           = new Menu();
     mainMenu.InitGame += StartGame;
     mainMenu.QuitGame += window.CloseAfterFrame;
     InteractionLogic   = new InteractionLogic();
     mainMenu.UpdateHighscoreDisplay(highScores);
 }
示例#2
0
 public Game(Window window)
 {
     highScores = new int[10];
     TryLoadingHighscores();
     SetUpBackground();
     mainMenu = new Menu();
     mainMenu.InitGame += StartGame;
     mainMenu.QuitGame += window.CloseAfterFrame;
     InteractionLogic = new InteractionLogic();
     mainMenu.UpdateHighscoreDisplay(highScores);
 }
示例#3
0
 private void RefreshHighScores()
 {
     AddLastScoreToHighscoreIfQualified();
     mainMenu.UpdateHighscoreDisplay(highScores);
     SaveHighScore();
 }