//--------------------------------------------------------------------------------------------------------------------------------------------------- // // 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 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; using DarkWynter.Engine.Menus; using DarkWynter.Engine.Controllers; using DarkWynter.Engine.Globals; using DarkWynter.Stream; #endregion //using Scurvy.Media; /// /// Our Starting Title Screen. /// Snowflake graphic thanks to Robert Redwood http://www.easyelements.com/photoshop-snowflake-brush-set.html /// public class TitleScreen : GameScreen { Texture2D snowFlake; Vector2 location; Vector2 scale; float rotation; float frontBack; Vector2 backgroundLocation; Vector2 backgroundOrigin; Random rand = new Random(); /// /// Title Screen constructor. /// public TitleScreen(Enums_Engine.EngineState GameEngineState) : base(GameEngineState) { //Instantiate the GameMenu // Title screen will only have the splash image menu = new GameMenu("", Statics_Stream.RenderSettings.GAME_WINDOW_WIDTH / 2, Statics_Stream.RenderSettings.GAME_WINDOW_HEIGHT / 2); // Game Screen Backgrounds // Check for widescreen and load appropriatly if ((Statics_Stream.RenderSettings.GAME_WINDOW_WIDTH) / Statics_Stream.RenderSettings.GAME_WINDOW_HEIGHT > 1.5) { // Load the textures for the game screens SetBackground(Statics_Engine.SystemSettings.content.Load("Content/_textures/TitleScreen_wide"), .75f); } else { // Load the textures for the game screens SetBackground(Statics_Engine.SystemSettings.content.Load("Content/_textures/TitleScreen"), .75f); snowFlake = Statics_Engine.SystemSettings.content.Load("Content/_textures/snowflake-brush-set"); location = new Vector2(200, 0); rotation = 0.0f; scale = new Vector2(0.5f, 0.5f); backgroundLocation = new Vector2( Statics_Stream.RenderSettings.GAME_WINDOW_WIDTH/2, Statics_Stream.RenderSettings.GAME_WINDOW_HEIGHT/2); backgroundOrigin = new Vector2(backgroundTexture.Width / 2, backgroundTexture.Height / 2); } //Video vid = Statics_Engine.SystemSettings.content.Load