コード例 #1
0
        protected override void Initialize()
        {
            graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
            graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
            GameWindow = new Rectangle(0, 0, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight);
            graphics.IsFullScreen = false;  //For debug purposes, full screen is off
            graphics.ApplyChanges();
            Window.AllowUserResizing = false;
            IsMouseVisible = true;

            random = new Random();
            PreviousMouse = Mouse.GetState();

            economicManager = new Economy.Manager();
            ThreadPool.QueueUserWorkItem(new WaitCallback(economicManager.Update));

            base.Initialize();
        }
コード例 #2
0
        protected override void Initialize()
        {
            graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height;
            graphics.PreferredBackBufferWidth  = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width;
            GameWindow            = new Rectangle(0, 0, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight);
            graphics.IsFullScreen = false;  //For debug purposes, full screen is off
            graphics.ApplyChanges();
            Window.AllowUserResizing = false;
            IsMouseVisible           = true;

            random        = new Random();
            PreviousMouse = Mouse.GetState();

            economicManager = new Economy.Manager();
            ThreadPool.QueueUserWorkItem(new WaitCallback(economicManager.Update));

            base.Initialize();
        }