I'm just throwing this into the mix and is very much up for debate :-)
In order to create a game loop it seems to generally be done in a map via a Post-Load script either within or calling another script. This would need replicating for many maps and could be solved with this addition, generally it would be for more global repeated aspects and would be great for a little code separation:
- Provides a script that loops by default, no need for a while loop inside
- provides a global.loop_duration var to use in various map scripts which may need their own while loops still
Image mockup provided for reference:
