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>(); }
public RaceFinishScene() : base() { _animationController = new AnimationController(); _dialogs.Add("results", new ResultsDialog(RegisterGameObject) { ExitCallback = ReturnToTitleScene } ); }
public TitleScene() : base() { _animationController = new AnimationController(); _titlePopup = new PopupRequiringDismissal(); _titlePopup.AnimationCompletionHandler = HandlePopupAnimationComplete; RegisterGameObject(_titlePopup); _unlockNotificationDialog = new NewContentUnlockedDialog(); _dialogs.Add("reminder", new RateBuyReminderDialog()); _dialogs.Add("main", new MainMenuDialog()); _dialogs.Add("start", new StartMenuDialog()); _dialogs.Add("survival-levels", new SurvivalStartCarouselDialog(RegisterGameObject, UnregisterGameObject)); _dialogs.Add("characters", new CharacterSelectionCarouselDialog(RegisterGameObject, UnregisterGameObject)); _dialogs.Add("options", new OptionsDialog()); _dialogs.Add("keyboard", new KeyboardDialog()); _dialogs.Add("reset-areas", new ResetAreasConfirmDialog()); _dialogs.Add("areas-reset", new ResetAreasCompleteDialog()); _dialogs.Add("unlocks", _unlockNotificationDialog); _dialogs.Add(Race_Aborted_Dialog, new DisconnectedDialog("Connection Broken - Race Aborted!")); _dialogs.Add("info", new InfoMenuDialog()); RegisterGameObject( new TextContent(Translator.Translation("Leda Entertainment Presents"), new Vector2(Definitions.Back_Buffer_Center.X, 60.0f)) { RenderLayer = 2, RenderDepth = 0.5f, Scale = 0.65f }); }
public SurvivalAreaCompleteScene() : base() { _animationController = new AnimationController(); _textFadeTimer = new Timer(""); _textFadeTimer.ActionCompletionHandler = HandleTimerActionComplete; GlobalTimerController.GlobalTimer.RegisterUpdateCallback(_textFadeTimer.Tick); _congratulationsPopup = new Effects.Popups.PopupRequiringDismissal(); _congratulationsPopup.DisplayPosition = new Vector2(Definitions.Back_Buffer_Center.X, 150.0f); _congratulationsPopup.AnimationCompletionHandler = HandlePopupAnimationComplete; _contentFactory = new SurvivalAreaCompleteContentFactory(RegisterGameObject); }