I’m making a platformer, but I’ve started considering making the levels modular.
I’d like to make 10 sections of a 2d platforming level, pick 5 of the sections and place them in random order to create a seamless level.
Any suggestions on where to get started? How to store the level/section data? ScriptableObjects? Prefabs? I haven’t been able to find any good resources on the topic.
Just a Student myself, but i’d like to give it a try:
- You could store level informations (like object/environment positions) in a scriptable object and call them upon building the level → furthermore you could randomize these information for even more diversity
- You could build entire sections by hand and store them as a prefab
- Or you could just build the entire level based on an algorythm … this would make sections obsolete but requires a hell of inspection