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

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

Record of Lodoss War - Deedlit in Wonder Labyrinth (Steam PC Game)

...
Read more

Online statistics

Members online
181
Guests online
172
Total visitors
353

Forum statistics

Threads
7,312
Messages
182,590
Members
526,923
Latest member
Kelpoo

Support us

Back
Top