Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 private void showResults(Results r)
 {
     screenManager.resultsScreen.results = r;
     screenManager.transitionScreens(this, screenManager.resultsScreen);
 }
Ejemplo n.º 3
0
 public void gameOver(bool success)
 {
     totalScore += score;
     results = new Results(waveNumber, waves.Count, totalScore, maxScore, elapsedTime, success);
     complete = true;
 }