Пример #1
0
 public UserInterface()
 {
     _title = new Title
     {
         Renderer = _renderer,
         SoundManager = _soundManager
     };
     _stageEditor = new StageEditor
     {
         Renderer = _renderer,
     };
 }
Пример #2
0
        private bool DoTitle()
        {
            Input input = _input.GetInput();
            _title.Render(input);
            _renderer.Flip();
            if (_title.Start)
            {
                _game = new ShootingGame(_title.IsEx);
                _view = new ShootingGameView(_game)
                {
                    Renderer = _renderer,
                    SoundManager = _soundManager
                };
                _current = DoGame;
                _title = new Title
                {
                    Renderer = _renderer,
                    SoundManager = _soundManager
                };

                return true;
            }
            if (_title.Edit)
            {
                _current = DoEditor;
                return true;
            }
            return !_title.Exit;
        }