//---------------------------------------------------------------------------------------------------------------------------------------------------
//
// 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;
using DarkWynter.Engine.Menus;
using NoName.Statics;
#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.MenuState GameEngineState)
: base(GameEngineState)
{
//Instantiate the GameMenu
// Title screen will only have the splash image
menu = new GameMenu("", NoName.Statics.Globals.GAME_WINDOW_WIDTH / 2, NoName.Statics.Globals.GAME_WINDOW_HEIGHT / 2);
// Game Screen Backgrounds
// Check for widescreen and load appropriatly
if ((NoName.Statics.Globals.GAME_WINDOW_WIDTH) / NoName.Statics.Globals.GAME_WINDOW_HEIGHT > 1.5)
{
// Load the textures for the game screens
SetBackground(NoName.Statics.Globals.content.Load("Content/_textures/TitleScreen_wide"), 1.0f);
}
else
{
// Load the textures for the game screens
SetBackground(NoName.Statics.Globals.content.Load("_textures/TitleScreen_wide"), 1.0f);
snowFlake = NoName.Statics.Globals.content.Load("_textures/_hud/Thought");
location = new Vector2(200, 0);
rotation = 0.0f;
scale = new Vector2(0.5f, 0.5f);
}
//Video vid = Statics_Engine.SystemSettings.content.Load