For those of you who are unfamiliar, Super Mario 64 is an extremely competitive speed game, and because glitches are allowed on most major leaderboards, many very talented glitch hunters have torn the game to pieces. One of the more obscure glitches is the ability for Mario to enter parallel universes. How does something so obscure and so unusual exist? What causes the game to create them?

  • 2
    Good article about it: pannenkoek2012.fandom.com/wiki/Parallel_Universe
    – aybe
    Oct 25 '19 at 10:48
  • 6
    I'm voting to close this question as off-topic because gaming.stackexchange.com is a much better place for this question. Oct 25 '19 at 14:05
  • 2
    So... it sounds like the short answer is: because floors on the map are stored with 16-bit integers, but objects are positioned with 32-bit floats and collision detection is handled via truncation, and sometimes you can accelerate an object quickly enough to cause it to escape the range of 16-bit integers centred on 0, after which it is detected to interact with floors outside of the normal level area?
    – Tommy
    Oct 25 '19 at 15:52
  • 1
    @manassehkatz I'm not so sure. It's talking about the implementation of the software, and how software and hardware interact to cause a specific program to exhibit a specific behaviour. If this wasn't a game, it would be on-topic, and (unless I've missed a rule change somewhere in the last several months) we don't treat games differently to any other pieces of software.
    – wizzwizz4
    Oct 25 '19 at 17:17
  • 4
    I don't see why this is closed, and yet Why does the Minus World exist? is highly-voted and still open.
    – Dranon
    Oct 25 '19 at 23:59

This answer is based solely on the information here and the original Parallel Universe video.

There is a part of the game's code that detects whether Mario is standing on the floor. This part of the code uses 16 bits to process Mario's position in the X, Y and Z direction (so 48 bits total, but 16 bits per direction). 16 bits is enough to store a number between -32768 and 32767. The Y direction (up and down) is irrelevant, so let's focus on X and Z.

Let's say there is a floor you can stand on, at coordinates X=0, Z=0. If Mario is at the same coordinates X=0, Z=0, then the code will (of course) detect that he's standing on the floor at X=0, Z=0. And Mario will be able to stand on the floor.

Now let's say Mario is at coordinates X=0, Z=32769. When the game runs the code to check whether he's standing on a floor, it will try to store 32769 in 16 bits. 32769 is out of the range that will fit, and it wraps around to -32767. Then, the floor-checking code will look for a floor at the coordinates X=0, Z=-32767, which is not Mario's actual position!

If Mario is at X=0, Z=65536, then it wraps all the way around back to 0. Basically, any multiple of 65536 gets removed. So if there's a floor at X=0, Z=0, then Mario is allowed to stand at X=0, Z=0, or at X=0, Z=65536, or at X=0, Z=131072, or at X=65536, Z=0, or at X=65536, Z=65536, or at X=65536, Z=131072, or so on.

This makes a grid of valid positions for Mario, which is the "PU grid" (Parallel Universe grid). If Mario is in any position where it gets wrapped around for the floor check (i.e. any of his coordinates are less than -32768 or greater than 32767), then we say he's in a parallel universe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.