예제 #1
0
파일: Game.cs 프로젝트: remy22/DeltaEngine
 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();
 }