-- SM64 Randomizer v0.5--

Made by Arthurtilly


-- HOW IT WORKS --

- At the file select screen, you can access the Seed Select menu (replacing the Sound Select menu). Here you can enter a seed to
play with, or you can leave it as RANDOM to generate a random seed. Entering the same seed will result in the same game.
You can pause during the game at any time to see what your seed is.

- Many objects will be in completely random places, depending on the seed. This includes stars, red coins, enemies, bosses, etc.
	- Stars that spawn in after a goal is completed also spawn in random places. This is not determined by the seed.

- The star requirements for most doors leading to courses are random depending on the seed. The exceptions are the BoB painting, which is
accessible at the start of the game, and the BitS entrance which will always be accessible at 70 stars.
    - The star door leading to the endless staircase cannot be opened without 70 stars, preventing BLJing to BitS.

- Keys are not required to go through key doors, however star doors are required to be passed through to access the
majority of the basement and upstairs. Doors in the lobby will have a lower star requirement on average than doors in other places.

- When entering a level, the position you spawn at is also completely random. Unlike positions of objects, the position you
spawn at is not dependent on the seed and will change every time you enter the level.

- The warps to all the main courses are scrambled up, so you cannot tell which level you will go to. The order the warps are
in depends on the seed.


-- CREDIT --

- Big thanks to JoshDuMan and nim for a ton of help with coding.

-- CHANGELOG --

v0.5:

- All known OoB spawns have been fixed.
- Randomized secrets, treasure chests and single coins.
- The text that signs display is randomized.
- Added act numbers above stars.
- Camera will follow stars when they spawn.
- Gave minion bullie sand big piranha plants sparkles to differentiate them.
- Increased render distance of some important objects.
- Seed is displayed after collecting a star as well as when collecting the Grand Star.
- The version is now displayed in the file select screen.
- Added a bunch more easter eggs to the file select screen.
- Mostly fixed object shuffling when re-entering a level
- Mostly fixed object shuffling when travelling between subareas
- Fixed bad spawns in the TTM slide
- Fixed Mario spawning in places that make it impossible to progress.
- Fixed important objects spawning in the vanish cap room in BBH.
- Fixed sign and metal box hitboxes.
- Fixed the Bob-omb Buddy spawning in areas unreachable without the cannon.
- Fixed many bad spawning areas.
- Fixed certain objects unloading when Mario gets near.


v0.4:

- Added some easter eggs in the file select menu (credit to <> for some of these.)
- Objects will no longer spawn behind walls (mostly) or inside ceilings.
- PSS and the CCM slide have objects spawn in appropriate places.
- JRB star 1 will now spawn normally.
- Objects can spawn at any height underwater.
- Removed intro cutscene.
- Mr. Is and wooden posts won't spawn too close to walls.
- Warps will now scramble correctly after a game over or save and quit.
- Cork boxes are now randomized.
- No more insta-death spawns in SSL.
- Objects won't spawn inside the BitFS warp.
- Added star requirement to door between the pillar room and the main basement.
- Fixed weird camera at the top of BoB and WF.
- Added a bunch of easter eggs in the file select screen.
- Fixed several crashes.
- Many other tweaks to make the game as possible as possible.

v0.3:

- The seed can now be viewed in the pause menu.
- Objects should no longer spawn in ceilings.
- The maximum steepness threshold grounded objects can spawn on has been reduced.
- Various tweaks to make BBH and CotMC more randomizer-friendly.
- Maximum star requirement for lobby doors reduced from 30 to 25.
- Objects now spawn facing a random angle.
- In THI area 3, all red coins / red coin star will always spawn below the floor and the wiggler star will always spawn above the floor.
- The Bob-omb Battlefield painting will never link to TotWC, VCutM or PSS in order to prevent getting stuck at the beginning of the game.

v0.2:

- Added seed selection menu in file select.
- Fixed the warp to CotMC in HMC not being scrambled.
- [!] boxes and ground enemies will no longer spawn underwater, except in WDW.
- Objects will no longer spawn past the loading zones in DDD and WDW.
- Death warps for WMotR and CotMC are made fairer.
- The door leading to the endless staircase now requires 70 stars.
- TotWC and BBH now have scrambled star requirements, and the entrance to BBH will always spawn.
