Skip to content

Commit 2ebf108

Browse files
authored
Merge pull request #18 from electricalgorithm/pygame_init
added pygame.init() / Program couldn't run before
2 parents 5ae6b6d + 8ece28e commit 2ebf108

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)