//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {License Information: Creative Commons} //--------------------------------------------------------------------------------------------------------------------------------------------------- namespace ElementalGame { #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 // The Loading... Screen 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; // Constructor: public LoadingScreen() { //Instantiate the GameMenu menu = new GameMenu("", 0,0); } public void SetGlyph(Texture2D glyph) { glyphTexture = glyph; } public new void Draw() { base.Draw(); /* spriteBatch.Draw(glyphTexture, new Rectangle(glyphPositionX * XML.SystemSettings.GAME_WINDOW_WIDTH / 800, glyphPositionY * XML.SystemSettings.GAME_WINDOW_HEIGHT / 600, glyphSize * XML.SystemSettings.GAME_WINDOW_WIDTH / 800, glyphSize * XML.SystemSettings.GAME_WINDOW_HEIGHT / 600), null, Color.White, rotation, new Vector2(glyphTexture.Width / 2, glyphTexture.Height / 2), SpriteEffects.None, 0); */ //RotateGlyph(); } private void RotateGlyph() { rotation += 0.2f; if (rotation > Math.PI * 2) { rotation = 0; } } } }