public void Initialize(ScreenManager screen) { ScreenManager = screen; ScreenManager.Game.Window.Title = "Scrolling Text Engine"; TextBox = new Text.TextBox( "What's he building in there? /n " + "What the hell is he building In there? /n " + "He has /s subscriptions /s to /s those Magazines... He never /f Waves /f when he goes by... /n " + "He's hiding something /f from The /f rest of us... /n " + "He's all To himself... I think I know Why... He took down the Tire swing from the Peppertree /n " + "He has no children of his Own you see... He has no dog, And he has no friends... " + "And His lawn is dying... /n and What about all those packages He sends. /n What's he building in there? /n " + "With that hook light On the stairs. /n What's he building In there... /n I'll tell you one thing " + "He's not building a playhouse for The children. /n What's he building In there? /n " + "Now what's that sound from under the door? /n He's pounding nails into a Hardwood floor... /n " + "I Swear to god I heard someone Moaning low... and I keep Seeing the blue light of a TV show... /n " + "He has a router, And a table saw... and you Won't believe what Mr. Sticha saw. /n There's poison " + "underneath the sink Of course... But there's also Enough formaldehyde to choke A horse... /n " + "What's he building In there. What the hell is he Building in there? /n I heard he Has an ex-wife " + "in some place Called Mayors Income, Tennessee. And he used to have a consulting business " + "in Indonesia... /n but what is he building in there? /n What the hell is building in there? /n " + "He has no friends, But he gets a lot of mail. /n I'll bet he spent a little Time in jail... /n " + "I heard he was up on the Roof last night Signaling with a flashlight. /n And what's that tune he's " + "Always whistling... /n What's he building in there? /n What's he building in there? /n " + "We have a right to know...", ScreenManager.SpeechFont); }
/// <summary> /// The constructor is private: loading screens should /// be activated via the static Load method instead. /// </summary> private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, GameScreen[] screensToLoad) { this.loadingIsSlow = loadingIsSlow; this.screensToLoad = screensToLoad; TransitionOnTime = TimeSpan.FromSeconds(0.5); }
/// <summary> /// Activates the loading screen. /// </summary> public static void Load(ScreenManager screenManager, bool loadingIsSlow, params GameScreen[] screensToLoad) { // Tell all the current screens to transition off. foreach (GameScreen screen in screenManager.GetScreens()) screen.ExitScreen(); // Create and activate the loading screen. LoadingScreen loadingScreen = new LoadingScreen(screenManager, loadingIsSlow, screensToLoad); screenManager.AddScreen(loadingScreen); }
/// <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() { // TODO: Add your initialization logic here // Create the screen manager component. screenManager = new ScreenManager(this); Components.Add(screenManager); //Activate the first screens. screenManager.AddScreen(new BackgroundScreen()); screenManager.AddScreen(new MainMenuScreen()); //Conveniently jump to a screen, reducing a waste of time otherwise spent in menus. LoadingScreen.Load(screenManager, true, new RPGScreen()); base.Initialize(); }