Created
May 17, 2021 05:11
-
-
Save tlindner/6e042b295f47a64e4c76eb3eb0d0757a to your computer and use it in GitHub Desktop.
Color COmputer Arkanoid Cheat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Lua script for MAME | |
-- Driver: coco3, game: Arkanoid | |
-- Start: ./mame coco3 -cart Arkanoid.ccc -autoboot_script Arkanoid\ Cheat.lua | |
emu.pause() | |
cpu = manager.machine.devices[":maincpu"] | |
mem = cpu.spaces["program"] | |
function draw_hud() | |
if mem:read_u8(0x134) > 180 then | |
mem:write_u8(0x134, 140) | |
end | |
end | |
emu.register_frame(draw_hud, "frame") | |
emu.unpause() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment