Super Mario RNG Bros. (Random Level Generator)

Share your completed SMBX episodes or play and discuss others.

Moderator: Userbase Moderators

jonloveslegos
Fighter Fly
Fighter Fly
Posts: 31
Joined: Fri Nov 06, 2020 6:12 pm
Flair: Team Luigi

Super Mario RNG Bros. (Random Level Generator)

Postby jonloveslegos » Wed May 26, 2021 6:20 pm

"Oh no! Bowser is at it again! He found a way to alter the universe to have the mushroom kingdom constantly changing to different layouts! Can you find your way through it all and face bowser in world 8-4?"

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!
Image Image Image Image Image Image Image Image Image Image Image Image
Last edited by jonloveslegos on Thu May 27, 2021 4:35 pm, edited 1 time in total.

YourLocalHungarian
Cheep-Cheep
Cheep-Cheep
Posts: 14
Joined: Sun May 02, 2021 5:24 am
Flair: poggers champ
Pronouns: he/him
Contact:

Re: Super Mario RNG Bros. (Random Level Generator)

Postby YourLocalHungarian » Thu May 27, 2021 11:32 am

holy smokes, this seems to be a very cool project!

lan vuhoang
Swooper
Swooper
Posts: 67
Joined: Wed Jul 03, 2019 7:31 am

Re: Super Mario RNG Bros. (Random Level Generator)

Postby lan vuhoang » Thu Jun 10, 2021 4:02 am

Lucky for you that all the SMB1 randomizers out there were for the NES version., so this is the closest to an actual SMB1 randomizer with SNES graphics for now.


Return to “Episodes”

Who is online

Users browsing this forum: Petal [Bot] and 5 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari