コード例 #1
0
ファイル: Varpal.cs プロジェクト: Pactor/Varpal
        /// <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();
        }
コード例 #2
0
ファイル: GameScreen.cs プロジェクト: Pactor/Varpal
 /// <summary>
 /// How we create this screen
 /// it must know who its screemanager is
 /// </summary>
 public GameScreen(ScreenManager mngr)
 {
     Manager = mngr;
     Initialize();
 }
コード例 #3
0
ファイル: BlankScreen.cs プロジェクト: Pactor/Varpal
 public BlankScreen(ScreenManager mngr)
     : base(mngr)
 {
 }