Skip to content

Instantly share code, notes, and snippets.

@TurbulentEddie
Created August 12, 2015 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TurbulentEddie/1edcef990424bffff808 to your computer and use it in GitHub Desktop.
Save TurbulentEddie/1edcef990424bffff808 to your computer and use it in GitHub Desktop.
Why THQ, why? (Use on Rocky and Bullwinkle)
-- put pointers to fun locations here
-- (I'm not convinced this is the only one)
pntrs = {0x051F};
val = math.random(1, 64);
while (true) do
if (emu.framecount() % 120 == 0) then
val = math.random(1, 64);
end
for key,pntr in pairs(pntrs) do
memory.writebyte(pntr, val);
end
emu.frameadvance();
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment