示例#1
0
        public void DrawLevel(SpriteBatch spriteBatch)
        {
            enter.Draw(spriteBatch);
            quit.Draw(spriteBatch);

            foreach (AnimatedSprite enemy in enemies)
            {
                enemy.Draw(spriteBatch);
            }
            foreach (Block block in blocks)
            {
                block.Draw(spriteBatch);
            }
            foreach (Gem gem in gems)
            {
                gem.Draw(spriteBatch);
            }
            if (levelState != LevelState.Overview)
            {
                hero.Draw(spriteBatch);
            }
        }