Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
 /// <summary>
 /// How we create this screen
 /// it must know who its screemanager is
 /// </summary>
 public GameScreen(ScreenManager mngr)
 {
     Manager = mngr;
     Initialize();
 }
Exemplo n.º 3
0
 public BlankScreen(ScreenManager mngr)
     : base(mngr)
 {
 }