예제 #1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin(transformMatrix: camera.GetViewMatrix());

            for (int i = 0; i <= backgrounds.Count - 2; i++)
            {
                backgrounds[i].Draw(spriteBatch);
            }
            torch1.Draw(spriteBatch);
            torch2.Draw(spriteBatch);
            backgrounds[backgrounds.Count - 1].Draw(spriteBatch);
            foreach (HealthPotion HP in HealthPotion.hpList)
            {
                HP.Draw(spriteBatch);
            }
            healthBar.Draw(spriteBatch);
            healthBarBoss.Draw(spriteBatch);
            foreach (Phantom phantom in phantomList)
            {
                phantom.Draw(spriteBatch);
            }
            boss.Draw(spriteBatch);
            player.Draw(spriteBatch);

            spriteBatch.End();
        }
예제 #2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin(transformMatrix: camera.GetViewMatrix());

            for (int i = 0; i <= backgrounds.Count - 2; i++)
            {
                backgrounds[i].Draw(spriteBatch);
            }

            foreach (FireTrap f in fireTraps)
            {
                f.Draw(spriteBatch);
            }
            foreach (CampFireTrap c in campfireTraps)
            {
                c.Draw(spriteBatch);
            }
            foreach (Spear s in spearTraps)
            {
                s.Draw(spriteBatch);
            }
            foreach (SpearV sV in spearVTraps)
            {
                sV.Draw(spriteBatch);
            }
            foreach (SpearH sH in spearHTraps)
            {
                sH.Draw(spriteBatch);
            }
            pumpkin.Draw(spriteBatch);
            backgrounds[backgrounds.Count - 1].Draw(spriteBatch);
            portal.Draw(spriteBatch);

            foreach (HealthPotion HP in HealthPotion.hpList)
            {
                HP.Draw(spriteBatch);
            }
            foreach (Zombie zombie in zombiesList)
            {
                zombie.Draw(spriteBatch);
            }
            foreach (Gargoyle gargoyle in gargoyleList)
            {
                gargoyle.Draw(spriteBatch);
            }
            foreach (Skeleton skeleton in skeletonList)
            {
                skeleton.Draw(spriteBatch);
            }
            foreach (SkeletonZombie skezom in skeletonzombieList)
            {
                skezom.Draw(spriteBatch);
            }

            player.Draw(spriteBatch);
            healthBar.Draw(spriteBatch);
            spriteBatch.End();
        }