public ResultsScreen(Game game, SpriteBatch spriteBatch, SpriteFont spriteFont)
     : base(game, spriteBatch)
 {
     this.spriteFont = spriteFont;
     imageRectangle = new Rectangle(0, 0, Game.Window.ClientBounds.Width, Game.Window.ClientBounds.Height);
     results = new Results(0, 0, 0, 0, 0, false);
 }
 private void showResults(Results r)
 {
     screenManager.resultsScreen.results = r;
     screenManager.transitionScreens(this, screenManager.resultsScreen);
 }
Beispiel #3
0
 public void gameOver(bool success)
 {
     totalScore += score;
     results = new Results(waveNumber, waves.Count, totalScore, maxScore, elapsedTime, success);
     complete = true;
 }