sometimes i think about unity's scene file format and what a disaster it is and what an alternative would look like. i generally prefer to have everything defined by code as that presents the fewest assumptions but sometimes i noodle around with the idea of an XML file that straightforwardly compiles into C#, a little like e.g. Vue components. i am not sure if this is a good idea or worth exploring.

<boss-scene enemies="100" difficult="true">
    <walking-enemy-spawner start-x="30" start-y="100" />
    <walking-enemy-spawner start-x="130" start-y="200" />
    <power-ups chance="0.5">
        <health max="80" />
        <speed />
    </power-ups>
</boss-scene>public static partial class Assets
{
    public static BossScene Load()
    {
        var boss_scene = new BossScene(enemies:300, difficult: true);
        boss_scene.AddChild(new WalkingEnemySpawner(start_x:30, start_y:100));
        boss_scene.AddChild(new WalkingEnemySpawner(start_x:130, start_y:200));
        var power_ups = new PowerUps(chance:0.5);
        power_ups.AddChild(new Health(max:80));
        power_ups.AddChild(new Speed());
        boss_scene.AddChild(power_ups);
        return boss_scene;
    }
}
0

If you have a fediverse account, you can quote this note from your own instance. Search https://merveilles.town/users/nasser/statuses/115991711232956109 on your instance and quote it. (Note that quoting is not supported in Mastodon.)