//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- namespace DarkWynter.Engine.Menus.GameScreens { #region Using Statements using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; #endregion using DarkWynter.Engine.Globals; using DarkWynter.Engine.Menus; using DarkWynter.Engine.ObjectLib; using DarkWynter.Engine.Controllers; /// /// Displayed while loading game. /// public class LoadingScreen : GameScreen { private const int glyphPositionX = 537; private const int glyphPositionY = 242; private const int glyphSize = 64; private Texture2D glyphTexture; private float rotation = 0; /// /// Loading Screen constructor. /// public LoadingScreen(Enums_Engine.EngineState GameEngineState) : base(GameEngineState) { //Instantiate the GameMenu menu = new GameMenu("", 0,0); SetBackground(Statics_Engine.SystemSettings.content.Load("Content/_textures/Loading")); glyphTexture = Statics_Engine.SystemSettings.content.Load("Content/GamePicture"); } ///// ///// Update this Menu screen ///// ///// ObjectLibrary //public override void Update(ObjectLibrary objectLibrary) //{ // base.Update(objectLibrary); //} /// /// Draw this menu screen /// /// Sprite Batch public override void Draw(SpriteBatch spriteBatch) { base.Draw(spriteBatch); Statics_Engine.GameSettings.LoadLevel = true; } } }