コード例 #1
0
        public Game1()
        {
            //This is a jonathan comment
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferHeight = SCREEN_HEIGHT;
            graphics.PreferredBackBufferWidth  = SCREEN_WIDTH;

            ScreenBounds          = new Rectangle(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
            Content.RootDirectory = "Content";

            Components.Add(new InputHandler(this));
            _stateHandler = new GameStateHandler(this);
            Components.Add(_stateHandler);

            _splashScreen     = new SplashScreen(this, _stateHandler);
            _menuScreen       = new MenuScreen(this, _stateHandler);
            _gameScreen       = new GameScreen(this, _stateHandler);
            _difficultyScreen = new DifficultyScreen(this, _stateHandler);
            _cutScreen        = new CutScreen(this, _stateHandler);

            _stateHandler.ChangeState(_splashScreen);
        }