Coin limit: Difference between revisions

Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 37: Line 37:
  }
  }


Because the lives counter is a signed short, the value of 999 overflows to -25. This is displayed in the HUD as "M25." (The "M" presumably means "minus.")
Because the lives counter is a signed short, the value of 999 overflows to -25. This is displayed in the HUD as "M25". (The "M" presumably means "minus".)


After reaching a value of 32,767, the ''coin display'' remains at that value. After that, only the hidden ''coin count'' keeps incrementing. That is because the coin count is a signed short, so if the player collects more coins, the coin counter will overflow to -32,768. Since -32768 is not greater than 32,767, the coin display will not increment any further. If one were to collect a 65,636<sup>th</sup> coin (65,536 for the overflow and 100 for the star), a second 100 coin star would spawn. This was a part of a strategy that could have been applied to collect "To the Top of the Fortress" in 0x A presses<ref>[https://youtu.be/GMOxYVtJhOI "WF Onto Tower 0x in Japanese Version" by UncommentatedPannen]</ref>, but it wasn't because a faster 0xA strategy was discovered for that star<ref>[https://youtu.be/M4M_OyUorRQ "SM64 - To the Top of the Fortress - 0x A Presses" by pannenkoek2012]</ref>.
After reaching a value of 32,767, the ''coin display'' remains at that value. After that, only the hidden ''coin count'' keeps incrementing. That is because the coin count is a signed short, so if the player collects more coins, the coin counter will overflow to -32,768. Since -32768 is not greater than 32,767, the coin display will not increment any further. If one were to collect a 65,636<sup>th</sup> coin (65,536 for the overflow and 100 for the star), a second 100 coin star would spawn. This was a part of a strategy that could have been applied to collect "To the Top of the Fortress" in 0x A presses<ref>[https://youtu.be/GMOxYVtJhOI "WF Onto Tower 0x in Japanese Version" by UncommentatedPannen]</ref>, but it wasn't because a faster 0xA strategy was discovered for that star<ref>[https://youtu.be/M4M_OyUorRQ "SM64 - To the Top of the Fortress - 0x A Presses" by pannenkoek2012]</ref>.