Exemple #1
0
        public void Start()
        {
            _gameScreenSequenceExecution = new MainMenuSequence();

            var screenDesc     = GlobalScreenDescriptionCreator.CreateMainScreen(Context.ScreenSizeInformation);
            var screenSequence = ScreenSequenceDescription.Create(screenDesc);

            _gameScreenSequenceExecution.LoadContent(Context.GraphicsDevice, Context.ContentManager, screenSequence);
        }
        public void Start()
        {
            _gameScreenSequenceExecution = new SingleBallBalanceGame();

            var screenDesc     = GlobalScreenDescriptionCreator.CreateTestLevelScreen(Context.ScreenSizeInformation);
            var screenSequence = ScreenSequenceDescription.Create(screenDesc);

            _gameScreenSequenceExecution.LoadContent(Context.GraphicsDevice, Context.ContentManager, screenSequence);
        }
        public virtual void LoadContent(GraphicsDevice graphicsDevice,
                                        ContentManager contentManager,
                                        ScreenSequenceDescription screenSequenceDescription)
        {
            ExecutionState = InnerExecutionState.INIT;
            currentScreen  = 0;
            var firstScreen = screenSequenceDescription.ScreenDescriptions.ElementAt(0);

            LoadScreen(graphicsDevice, contentManager, firstScreen);
        }
 public override void LoadContent(GraphicsDevice graphicsDevice, ContentManager contentManager,
                                  ScreenSequenceDescription screenSequenceDescription)
 {
     base.LoadContent(graphicsDevice, contentManager, screenSequenceDescription);
 }