I have made a random level generator that takes a lvlx file you made and turns it into a txt file that holds all the info the engine needs!
It separates the different screens into biomes, then splits each biome into section types!
The current biomes are aboveground, underground, underwater, island, and castle
Then the types are start, filler (aka main), powerup, end, bonus.
Start is where you start,
Filler is just to have obstacles and enemies,
Powerup is the same as filler but it has a powerup,
End is where the goal/bowser is,
Bonus is the underground bonus section you get to with pipes,
You can find it here! https://github.com/jonloveslegos/RNG-SMBX2
!WARNING! When you download from github, make absolute sure you deleted any 'LastLevelSave' txt files if they exist!
You can make your own screens too! (Some features do not work though... and you have a BGO limit that you increase by adding more BGOs to the levelGenRoom.lvlx level file off-screen to the left)
Here are the steps to making your own screen for the engine to use!
1. Make a 1+ screen wide and 1 screen tall level file (Make sure it is EXACTLY 1 screen tall)
2. Load the level in the editor and press TAB, then put 'generateLevel = true' in the console that opens up and press ENTER (WARNING: If any enemies die, those enemies will NOT be saved, same with coins being collected!)
3. Follow the instructions in CONFIG.lua to add your level to the generator!
4. Make sure it works by testing the levelGenRoom.lvlx file until it appears! (You may need to delete a file in the same folder called 'LastLevelSave0.txt' if it does not generate a new level)
If you use the code, please credit me!
Here are some pictures!











