JanPoonthong / chip8_emulator

Chip-8 emulator in Python -> Pong, Space Invaders, Tetris, Pac-Man and many more
MIT License
1 stars 0 forks source link

Looks like optional parameter is not optional #1

Closed koutoftimer closed 3 years ago

koutoftimer commented 3 years ago
$ python chip8.py c8games/15PUZZLE 
pygame 2.0.1 (SDL 2.0.14, Python 3.7.3)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "chip8.py", line 48, in <module>
    renderer = Renderer(scale=number_of_scale)
  File "/tmp/chip8_emulator/renderer.py", line 12, in __init__
    self.width = self.cols * scale
TypeError: unsupported operand type(s) for *: 'int' and 'NoneType`
JanPoonthong commented 3 years ago

Try the newer version, newer version would not need parameter c8games/15PUZZLE

koutoftimer commented 3 years ago

@JanPoonthong lost interest. Close an issue if you will like to.