Esempio n. 1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            input = new InputHandler(this);
            Components.Add(input);

            camera = new Camera(this);
            Components.Add(camera);

            gameManager = new GameStateManager(this);
            Components.Add(gameManager);

            TitleIntroState  = new TitleIntroState(this);
            StartMenuState   = new StartMenuState(this);
            OptionsMenuState = new OptionsMenuState(this);
            PlayingState     = new PlayingState(this);
            StartLevelState  = new StartLevelState(this);
            FadingState      = new FadingState(this);
            LostGameState    = new LostGameState(this);
            WonGameState     = new WonGameState(this);
            PausedState      = new PausedState(this);
            YesNoDialogState = new YesNoDialogState(this);

            gameManager.ChangeState(TitleIntroState.Value);
        }
Esempio n. 2
0
        public TunnelVision()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            input = new InputHandler(this);
            Components.Add(input);

            Camera = new TunnelVisionCamera(this);
            Components.Add(Camera);

            gameManager = new GameStateManager(this);
            Components.Add(gameManager);

            Skybox = new Skybox(this);
            Components.Add(Skybox);

            //Components.Add(new GamerServicesComponent(this));

            TitleIntroState  = new TitleIntroState(this);
            StartMenuState   = new StartMenuState(this);
            OptionsMenuState = new OptionsMenuState(this);
            PlayingState     = new PlayingState(this);
            StartLevelState  = new StartLevelState(this);
            FadingState      = new FadingState(this);
            LostGameState    = new LostGameState(this);
            WonGameState     = new WonGameState(this);
            PausedState      = new PausedState(this);
            YesNoDialogState = new YesNoDialogState(this);
            //HighScoresState = new HighScoresState(this);

            gameManager.ChangeState(TitleIntroState.Value);
        }
Esempio n. 3
0
        internal void Create(IInitGameState initGameState, IReadyToStartState readyToStartState, IInGameState inGameState, IEndOfGameState endOfGameState, IIReleaseState releaseState, ILostGameState lostGameState)
        {
            Add(initGameState);
            Add(readyToStartState);
            Add(inGameState);
            Add(endOfGameState);
            Add(releaseState);
            Add(lostGameState);

            Start <InitGameState>();
        }