Ejemplo n.º 1
0
        public void Render(TimeSpan elapsedGameTime)
        {
            mainLayer.Begin();

            mainLayer.Save();
            mainLayer.Clear();

            if (helloWorldAnimation != null)
            {
                helloWorldAnimation.Render(mainLayer);
            }
            if (State.ShowWelcome)
            {
                if (welcomeAnimation != null)
                {
                    welcomeAnimation.Render(mainLayer);
                }
            }

            mainLayer.Restore();

            mainLayer.End();
        }