Пример #1
0
        public override void Draw(SpriteBatch spritebatch)
        {
            bg.Draw(spritebatch);

            foreach (GameObject t in tiles)
            {
                t.Draw(spritebatch);
            }

            foreach (GameObject g in deco)
            {
                g.Draw(spritebatch);
            }

            foreach (GameObject g in pickups)
            {
                g.Draw(spritebatch);
            }

            foreach (Trigger t in triggers)
            {
                t.Draw(spritebatch);
            }

            foreach (Danmaku d in projectiles)
            {
                d.Draw(spritebatch);
            }

            foreach (Enemy e in enemies)
            {
                e.Draw(spritebatch);
            }

            boss.Draw(spritebatch);
            player.Draw(spritebatch);

            hud.Draw(spritebatch);
            sm.Draw(spritebatch);

            attackoverlay.Draw(spritebatch);

            manager.Draw(spritebatch);

#if !RELEASE
            console.Draw(spritebatch);
#endif

            base.Draw(spritebatch);
        }
Пример #2
0
        public override void Draw(SpriteBatch spritebatch)
        {
            foreach (GameObject t in tiles)
            {
                t.Draw(spritebatch);
            }

            foreach (GameObject g in enemies)
            {
                g.Draw(spritebatch);
            }

            hud.Draw(spritebatch);

            debugheader.Draw(spritebatch);
            player.Draw(spritebatch);
            manager.Draw(spritebatch);
            base.Draw(spritebatch);
        }