buntine / SwervinMervin

A truly radical homage to 16-bit racing games.
GNU General Public License v2.0
230 stars 37 forks source link

Game crashed at level 3 #1

Closed Wuzzy2 closed 8 years ago

Wuzzy2 commented 8 years ago

My game crashed right before level 3 could start.

This is what appeared in the console:

  File "swervin_mervin/main.py", line 27, in <module>
    game.play()
  File "/home/wuzzy/src/SwervinMervin/swervin_mervin/game.py", line 39, in play
    self.level.build()
  File "/home/wuzzy/src/SwervinMervin/swervin_mervin/level.py", line 40, in build
    self.add_sprite(segment, row[1], float(row[2]), float(row[3]))
  File "/home/wuzzy/src/SwervinMervin/swervin_mervin/level.py", line 59, in add_sprite
    sprite = sp.Sprite(name, x, y)
  File "/home/wuzzy/src/SwervinMervin/swervin_mervin/sprite.py", line 11, in __init__
    self.sprite     = s.SPRITES[name]
KeyError: 'tunnel'

Tested: 0910d8c5822bf7595b9128fc55de230fb402e6a5 with Python 2.7.11 (Python 3 doesn't work at all).

buntine commented 8 years ago

Congrats on even making it to level 3!

Thanks for the bug report and stack trace. I'll take a look into it soon.

buntine commented 8 years ago

Ok, I've finally gotten around to looking into this. I fixed up level three now (I'd renamed one of the sprites, oops). Thanks!