Exemplo n.º 1
0
        public LeGame()
        {
            Console.WriteLine("Starting " + NAME + ", version " + VERSION + "  at " + DateTime.Now.ToShortDateString());
            #region Graphics Setup
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = (int)CLIENT_SCREEN_WIDTH;
            graphics.PreferredBackBufferHeight = (int)CLIENT_SCREEN_HEIGHT;
            graphics.ApplyChanges();
            this.Window.Title = NAME + " (" + VERSION + ")";
            #endregion
            #region Content Setup
            Content.RootDirectory = "Content";
            #endregion

            states = new StateManager(this);

            input = new InputHandler(this);
        }
Exemplo n.º 2
0
 public void TransitionToState(StateManager.State s)
 {
     targetState = s;
     isTransitioning = true;
     doChangeState = true;
     currentTransition = TransitionType.FadeOut;
 }