Skip to content
Snippets Groups Projects

Support for Python

Merged João Magalhães requested to merge joamag/python into master
Compare and Show latest version
2 files
+ 15
2
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
2
import boytacean
from time import time
from boytacean import GameBoy
gb = boytacean.GameBoy()
gb = GameBoy()
gb.load()
gb.load_rom("../../res/roms/demo/pocket.gb")
start = time()
for _ in range(6000):
gb.next_frame()
print(f"Time taken: {(time() - start)}")
gb.save_image("pocket.png")
Loading