示例#1
0
        public async Task Initialize(IGraphicContainer container, Rectangle frameRectangle)
        {
            _container = container;

            GameStatus = GameMode.Title;
            ResizeGame(frameRectangle);

            await _container.Initialize(ColorHelper.DrawColorMap);

            _currentTitle.InitTitleScreen();

            SetFlipTimer();
        }
示例#2
0
        public async Task Initialize(IGraphicContainer container, Rectangle frameRectangle)
        {
            _container = container;

            GameStatus = GameMode.Title;
            ResizeGame(frameRectangle);

            await _container.Initialize();

            _textManager  = new TextManager(_screenCanvas);
            _scoreManager = new ScoreManager(_textManager);
            _currentTitle = new TitleScreen(_textManager, _screenCanvas);
            _options      = new Options(_textManager, _screenCanvas);
            SetFlipTimer();
        }