first upload

I've finished the first level of the game.  I would appreciate feedback.  Also if anyone should look at my code, please feel free to comment and advise.

P.S.
Please excuse the amateur pixel art.  I'm a programmer (also amateur), not an artist.

(log in to comment)

Comments

After the title screen I get:

Traceback (most recent call last):
  File "game.py", line 595, in <module>
    main()
  File "game.py", line 587, in main
    main_game=game()
  File "game.py", line 231, in __init__
    self.savedgame=main_menu()
  File "game.py", line 493, in main_menu
    w=world('menu',0,0)
  File "game.py", line 141, in __init__
    self.currentpiece=self.pieces[currentpiece]
IndexError: list index out of range

I can't debug it now — I have to sleep :). Good night!
I can confirm the error cyhawk got. I fixed it by changing the following 3 lines:

Lines 66, 67, and 80: add a '\r' in front of the '\n'
e.g. sublines=lines.split('>>>\r\n') instead of sublines=lines.split('>>>\n')
Apparently you have carriage returns at the end of your map files that messed things up.

After that, the rest of the game worked great, although there was some flickering. The gameplay so far seems bland, but I can see that you have some commented out code for baddies. I hope you get to implement them!
That sounds like a line encodings bug - you should open the file with mode='rb' or 'rU'.