Example #1
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);
        }
Example #2
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);
        }