/// <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 // Send complete control over to our screenmanager // Turn on the mouse IsMouseVisible = true; // Pass all the info we need to our manager screenmanager = new ScreenManager(this, Content, graphics); screenmanager.AddScreen("Blank Screen", new BlankScreen(screenmanager)); base.Initialize(); }
/// <summary> /// How we create this screen /// it must know who its screemanager is /// </summary> public GameScreen(ScreenManager mngr) { Manager = mngr; Initialize(); }
public BlankScreen(ScreenManager mngr) : base(mngr) { }