File Name: | Expensive Jump |
Submitted: | by oderjunks |
Authors: | oderjunks |
Tool: | Asar |
Requires Free Space: | Yes |
Bug Fix: | No |
Featured: | No |
Description: | A jump costs a coin, But sadly when Mario jumps he glitches out a whole lot; no idea how to fix this. |
Screenshots: |
Originally posted by oderjunks
A jump costs a coin, But sadly when Mario jumps he glitches out a whole lot; no idea how to fix this.
Then fix it instead to submit it with this glitch. We won't shrug off any easily fixable glitches. The fix:
You overwrite four bytes in the hijack despite that $00D663 is a LDA $D2BD : STA $7D which is five bytes so the game interpreted $7D as an opcode instead of an unused address. You had to put right before or after the JSL a NOP.
In addition, the jump preventing could have been easily fixed. Aside from the easily fixable graphical glitches, it also doesn't prevent Mario from jumping but instead simply don't give him speed. A better way is to hijack the code which checks if A or B is pressed and put the custom code there.
And a minor complain, CMP #$00 is generally useless you have loaded other values before A.