示例#1
0
        public Main()
        {
            Instance = this;

            //Resolution and Fullscreen
            graphics = new GraphicsDeviceManager(this)
            {
                PreferredBackBufferWidth  = 1280,
                PreferredBackBufferHeight = 960,
                IsFullScreen = false
            };

            Content.RootDirectory = "Content";

            currentState = new State.Menu(this, graphics.GraphicsDevice);
        }
示例#2
0
 public void ChangeState(State.State state)
 {
     currentState = state;
     Initialize();
 }