Beispiel #1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            backClouds.Draw(spriteBatch);
            clouds.Draw(spriteBatch);
            mountains.Draw(spriteBatch);
            abilitiesManager.Draw(spriteBatch);
            if (!styraxTheHero.hasFallen)
            {
                styraxTheHero.Draw(spriteBatch);
                zombies.DrawEnemies(spriteBatch);
            }


            if (styraxTheHero.hasFallen)
            {
                zombies.DrawEnemies(spriteBatch);
                styraxTheHero.Draw(spriteBatch);
            }
            zombieDeath.DrawExplosions(spriteBatch);
            shur.Draw(spriteBatch);
            gui.Draw(spriteBatch);
            if (waveManager.bossBattle)
            {
                healthbar.Draw(spriteBatch);
            }
        }