Example #1
0
        protected override void Update(GameTime gameTime)
        {
            // update params, and call the root gamelet to do all.
            TTengineMaster.Update(gameTime, TreeRoot);

            // update any other XNA components
            base.Update(gameTime);

            // TODO document
            if (launcher != null && !launcher.IsFinished() &&
                launcher.IsGameShowingWindow && loadingDisplay.IsLoadingState())
            {
                loadingDisplay.SetPlayingGame(3.0f);
            }

            if (isExiting && !music.IsPlaying)
            {
                Exit(); // finally really exit XNA if music is faded out.
            }
        }