//---------------------------------------------------------------------------------------------------------------------------------------------------
//
// Copyright (C)2007 DarkWynter Studios. All rights reserved.
//
//---------------------------------------------------------------------------------------------------------------------------------------------------
// {Contact : darkwynter.com for licensing information
//---------------------------------------------------------------------------------------------------------------------------------------------------
namespace DarkWynter.Game.Menus
{
#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
#endregion
using DarkWynter.Engine.Menus;
using DarkWynter.Engine.Globals;
using DarkWynter.Game.Globals;
///
/// The screen which is displayed when the Game is over
///
public class GameOverScreen : GameScreen
{
bool needsUpdate = true;
///
/// Game Over Screen constructor
///
public GameOverScreen(Enums_Engine.EngineState GameEngineState)
: base(GameEngineState)
{
menu = new GameMenu("Game Over!", 100, 100);
menu.AddMenuButton("Press F12 to continue");
}
public override void Update(DarkWynter.Engine.ObjectLib.ObjectLibrary objectLibrary)
{
base.Update(objectLibrary);
if (needsUpdate)
{
needsUpdate = false;
menu.AddLabel("Total Score: " + Statics_Game.GameSettings.TotalScore());
menu.AddLabel("");
menu.AddLabel("");
menu.AddLabel("Number of Mins: " + Statics_Engine.LevelSettings.gameTimer.Elapsed.Seconds / 60.0f);
menu.AddLabel("Coins Collected: " + Statics_Game.GameSettings.coinsCollected);
menu.AddLabel("Experience Points: " + Statics_Game.GameSettings.experiencePoints);
}
}
}
}