예제 #1
0
    void Start()
    {
        this.combatState = new CombatGameState(this);
        this.menuState   = new MenuGameState(this);

        this.SetCombatState();
    }
예제 #2
0
        /// <summary>
        /// Begins running the Junkbot game engine.
        /// </summary>
        public void Begin()
        {
            // Load straight into the menu gamestate for now
            //
            var menuState = new MenuGameState();

            menuState.Initialize(this, AnimationStore);

            GameState = menuState;
        }
예제 #3
0
파일: Chess.cs 프로젝트: BartSiwek/Chess
        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);
        }