Skip to content

Commit 8ece28e

Browse files
added pygame.init() / Program couldn't run before
1 parent 5ae6b6d commit 8ece28e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

chip8/emulator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def main_loop(args):
3131
cpu = Chip8CPU(screen)
3232
cpu.load_rom(FONT_FILE, 0)
3333
cpu.load_rom(args.rom)
34+
pygame.init()
3435
pygame.time.set_timer(TIMER, DELAY_INTERVAL)
3536

3637
while cpu.running:

0 commit comments

Comments
 (0)