//public ParticleSystem explosionParticles; //public ParticleSystem explosionSmokeParticles; //Matrix viewMatrix; //Matrix projectionMatrix; //Matrix worldMatrix; public MainMenu(Game game, DialogManager dialogManager) : base(game) { this.dialogManager = dialogManager; // TODO: Construct any child components here }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { Shorewood.fonts.Add(FontTypes.DebugFont, Content.Load<SpriteFont>("Fonts\\Courier New")); Shorewood.fonts.Add(FontTypes.MenuFont, Content.Load<SpriteFont>("Fonts\\Arial")); Shorewood.fonts.Add(FontTypes.FloatingPointsFont, Content.Load<SpriteFont>("Fonts\\Nonstop.font")); Shorewood.fonts.Add(FontTypes.GoalFont, Content.Load<SpriteFont>("Fonts\\Arial.Smaller")); Shorewood.fonts.Add(FontTypes.MenuButtonFont, Content.Load<SpriteFont>("Fonts\\Arial.Large.Glyphs")); Shorewood.fonts.Add(FontTypes.ScoreFont, Content.Load<SpriteFont>("Fonts\\Arial.Smaller")); Shorewood.fonts.Add(FontTypes.Font1337, Content.Load<SpriteFont>("Fonts\\elite")); displayMode = GraphicsDevice.DisplayMode; Shorewood.localization.Add(UsEnglishLocalization.Language, UsEnglishLocalization.StringTable); ConstructAlphabet(); titleSafeArea = GraphicsDevice.Viewport.TitleSafeArea; #if !XBOX titleSafeArea = new Rectangle(128, 72, 1024, 576); #endif dialogManager = new DialogManager(this); popUpManager = new PopUpManager(this); menu = new MainMenu(this, dialogManager); menu.Enabled = false; menu.Visible = false; scale = titleSafeArea.Height / 1000.0f; base.Initialize(); }