PyBoy

Python:
 class PyBoy (gamerom, *, window='SDL2', scale=3, symbols=None, bootrom=None, sound_volume=100, sound_emulated=True, sound_sample_rate=None, cgb=None, gameshark=None, no_input=False, log_level='ERROR', color_palette=(16777215, 10066329, 5592405, 0), cgb_color_palette=((16777215, 8126257, 25541, 0), (16777215, 16745604, 9714234, 0), (16777215, 16745604, 9714234, 0)), **kwargs)

Python:
from pyboy import PyBoy
pyboy = PyBoy('game_rom.gb')
while pyboy.tick():
    pass
pyboy.stop()

Python:
pyboy.set_emulation_speed(0) # No speed limit
pyboy.button('down')
pyboy.button('a')
pyboy.tick() # Process at least one frame to let the game register the input
value_of_interest = pyboy.memory[0xC345]

pil_image = pyboy.screen.image
pil_image.save('screenshot.png')

Whoa, this looks cool as hell!

I wonder what other emulators you can interact with scripts like this.
 

Users who are viewing this thread

Connect with us

Featured Video

Gintama Rumble (VITA)

Latest Threads

What remasters would you want to see on the Nintendo Switch 2?

These are two I would love to see on the Nintendo Switch 2. Since Microsoft is publishing with...
Read more

Did any Mortal Kombat game scare you as a kid?

Hi, i know this is gonna sound stupid, but as a kid MK4 scared the ever loving shit out of me...
Read more

PSP Digital Comics

I really need some original digital comics enable to play in the offical app
Read more

PyBoy

Final fantasy IV Job System Mod

Online statistics

Members online
152
Guests online
257
Total visitors
409

Forum statistics

Threads
7,320
Messages
182,818
Members
527,729
Latest member
choogee

Support us

Back
Top