Coin limit: Difference between revisions

mNo edit summary
Line 87: Line 87:
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.")


The coin display on the HUD freezes at the value 32,767. After that, only the coin count is the only incrementing value. Because the coin count is not limited, the player can obtain an in-course coin count of 65,535. If the player collected one more coin while the game was in this state, the coin counter would overflow and be set to 0. 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 implemented in reducing "To the Top of the Fortress" to 0x, but it wasn't because a faster 0x strategy was discovered for that star.
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</ref>, but it wasn't because a faster 0xA strategy was discovered for that star<ref>https://youtu.be/M4M_OyUorRQ</ref>.
 
==References==
<references/>


[[Category:Terms]]
[[Category:Terms]]
[[Category:Values]]
[[Category:Values]]