Example #1
0
        protected override void Initialize()
        {
            base.Initialize();

            StaticImageGameState splashScreenState   = new StaticImageGameState(this, GameTextureKey.GameStartupImage, 5.0, 0.0, false);
            MenuGameState        menuState           = new MenuGameState(this);
            ChessMatchState      chessMatchGameState = new ChessMatchState(this);

            splashScreenState.NextState   = menuState;
            menuState.ChessMatchState     = chessMatchGameState;
            chessMatchGameState.MenuState = menuState;

            m_gameStateManager.Change(splashScreenState);
            m_gameStateManager.Push(menuState);
        }
Example #2
0
 private void startGameButton_OnPress(object sender, System.EventArgs e)
 {
     m_gameStateManager.Change(m_chessMatchState);
 }