Comment by π° NovaSquirrel
If I remember right, setting a breakpoint on the energy amount getting written to led me to some code that ANDed a frame counter with $3F and decreased the meter if the result was zero. So I just changed it to $FF.
It is definitely a lot trickier if you want to dig into behavior that isn't tied to something like a palette entry changing, or a position or other number with an obvious visible effect changing. For PokΓ©mon in particular, I'd probably try to see if one of the commented disassemblies those games have would be any help.
Feb 12 Β· 3 months ago
1 Later Comment
π drcouzelis Β· Feb 12 at 17:30:
@MaAkThRsYoOySrHtKaAm
It was super strange! So, there is an address in memory for a "random number", and that address is read many times in the code. It's used to randomly show the rhinoceros panting, to have the ostrich look around, and to make DK and Diddy randomly look around while ducking.
There is a randomization routine that will update the number, but it is ONLY executed on the title screen. Which means those animations will play but only if you happen to press Start on a number that would cause the animations to run.
The Game Genie code inserts a call to the randomization procedure every game loop.
Original Post
Game Genie Codes β Let this be a place for sharing codes for Game Genie/ Game Shark / Action Replay and save state hacks for Game Boy games. Tell your harrowing tales of code creation! Request a code! Maybe somebody will answer... Sometimes I just have more fun hacking these old games than I do playing them. At the time the following code was made, which is coming up on a decade ago now, it was surprising to see that such a popular game as Pokemon did not seem to have a published Game Genie...