Ejemplo n.º 1
0
        public override void OverscaledBackgroundDraw(GameTime gameTime)
        {
            base.OverscaledBackgroundDraw(gameTime);

            Background.Draw(gameTime, spriteBatch);
            BackgroundFlipbookList.ForEach((x) => x.Draw(gameTime, spriteBatch));
        }
Ejemplo n.º 2
0
        public override void Draw(GameTime gameTime)
        {
            Camera.Draw(spriteBatch);
            Cursor.Instance.Draw(gameTime, spriteBatch);

            if (!Parameter.ShouldChangeBGScale)
            {
                Background.Draw(gameTime, spriteBatch);
            }

            PopupHandler.Draw(gameTime, spriteBatch);

            if (!Parameter.ShouldChangeBGScale)
            {
                BackgroundFlipbookList.ForEach((x) => x.Draw(gameTime, spriteBatch));
            }

            Foreground.Draw(gameTime, spriteBatch);

            WeatherHandler.Draw(gameTime, spriteBatch);

            lock (MobileList)
            {
                MobileList.ForEach((x) => x.Draw(gameTime, spriteBatch));
                HUD.Draw(gameTime, spriteBatch);
            }

            MineList.ForEach((x) => x.Draw(gameTime, spriteBatch));

            ThorSatellite.Draw(gameTime, spriteBatch);

            DeathAnimation.Draw(gameTime, spriteBatch);
            SpecialEffectHandler.Draw(gameTime, spriteBatch);
            TextBalloonHandler.Draw(spriteBatch);
        }