コード例 #1
0
        public GameplaySceneBase(string sceneID)
            : base(sceneID)
        {
            _inputProcessor = Input.TouchControls.CreateController();

            _motionController = new MotionController();
            _animationController = new AnimationController();
            _timerController = new TimerController();

            _pauseController = new PauseController();
            _pauseController.AddPausableObject(_timerController);
            _pauseController.AddPausableObject(_animationController);

            _cameraController = new Bopscotch.Gameplay.Controllers.PlayerTrackingCameraController();
            _cameraController.Viewport = new Rectangle(0, 0, Definitions.Back_Buffer_Width, Definitions.Back_Buffer_Height);
            _cameraController.ScrollBoundaryViewportFractions = new Vector2(Definitions.Horizontal_Scroll_Boundary_Fraction, Definitions.Vertical_Scroll_Boundary_Fraction);

            Renderer.ClipOffCameraRendering(_cameraController, Camera_Clipping_Margin);

            _playerCollisionController = new OneToManyCollisionController();

            _opaqueParticleEffectManager = new OpaqueLayerParticleEffectManager(_cameraController);
            _additiveParticleEffectManager = new AdditiveLayerParticleEffectManager(_cameraController);

            _levelFactory = new Bopscotch.Gameplay.LevelFactory(RegisterGameObject, _timerController.RegisterUpdateCallback);

            _smashBlockItemFactory = new Effects.SmashBlockItems.SmashBlockItemFactory(RegisterGameObject, _timerController.RegisterUpdateCallback);

            _speedometer = new Bopscotch.Gameplay.Objects.Display.Speedometer();
            _playerEventPopup = new Bopscotch.Gameplay.Objects.Display.PlayerEventPopup();

            _objectWithGlowEffect = new List<ICanHaveGlowEffect>();
        }
コード例 #2
0
        public ContentSceneWithControlDialog()
            : base()
        {
            _motionController = new MotionController();

            Overlay = new FullScreenColourOverlay();
        }
コード例 #3
0
        public EditorScene()
            : base(1600, 900)
        {
            _inputHandler = new InputHandler()
            {
                StartMouseAction = StartMouseAction,
                CancelMouseAction = CancelMouseAction,
                CompleteMouseAction = CompleteMouseAction
            };

            _cameraController = new MobileCameraController();
            _motionController = new MotionController();

            CreateControls();
            CreateModalBoxes();

            Data.Container.RegisterComponent = RegisterGameObject;
            Data.Container.UnregisterComponent = UnregisterGameObject;

            _selected = null;
            _activeModalBox = null;
        }
コード例 #4
0
 public MenuDialogScene()
     : base()
 {
     _motionController = new MotionController();
     _dialogs = new Dictionary<string, Interface.Dialogs.ButtonDialog>();
 }