//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- /// /// Scope of all GameScreens in the game, includes Generic, GameOver, and Pause /// namespace DW.Menus.GameScreens { #region Using Statements using System; using System.Collections.Generic; using System.Text; #endregion using DW.Menus; using DW.Globals; /// /// The screen which is displayed when the Game is over /// public class GameOver : Screen { bool needsUpdate = true; bool surveyLaunched = false; /// /// Game Over Screen constructor /// public GameOver(Enums.MenuState GameEngineState) : base(GameEngineState) { menu = new ScreenMenu("Game Over!", 0, 0); } /// /// Updates the GameOver screen /// Will need to have functionality built in for use /// Can run Menus on this screen but you will need to code them to use your values /// public override void Update() { if (needsUpdate) { needsUpdate = false; // menu.AddLabel("Total Score: " + Statics_Engine.GameSettings.TotalScore()); // menu.AddLabel(""); // menu.AddLabel(""); // menu.AddLabel("Number of Mins: " + Statics_Engine.LevelSettings.gameTimer.Elapsed.Seconds / 60.0f); // menu.AddLabel("Coins Collected: " + Statics_Engine.PlayerSettings.coinsCollected); // menu.AddLabel("Experience Points: " + Statics_Engine.GameSettings.experiencePoints); } } } }