Final Submission 1 up.
I think I'm done. No sound, but I don't think I could do sound well. I wanted to add a campaign and more units, but hey, it works and I'm happy.Please try it out and give feedback and rate it and everything.
(log in to comment)
Comments
Hi, I couldn't get it to work in python 2.6.5, the format specifiers need indices in.
Traceback (most recent call last):
Traceback (most recent call last):
File "zombiescience.py", line 382, in <module>
zombieList = charChose(screen, 1, 1000, [])
File "zombiescience.py", line 218, in charChose
info = [font.render('Zombie:', True, (0,0,0)),font.render('Speed: {}'.format(zombie.speed), True, (0,0,0)),font.render('Health: {}'.format(zombie.hp), True, (0,0,0)),font.render('Attack: {}'.format(zombie.att), True, (0,0,0)),font.render('Defence: {}'.format(zombie.defence), True, (0,0,0)),font.render('Credits: {}'.format(creditsAvailable), True, (0,0,0)),font.render('Cost: {}'.format(cost), True, (0,0,0))]
ValueError: zero length field name in format
Also, I needed to comment out the pygame.mixer.pre_init call, as it was hanging for some reason.
Also, I needed to comment out the pygame.mixer.pre_init call, as it was hanging for some reason.
http://stackoverflow.com/questions/10054122/valueerror-zero-length-field-name-in-format-python
Apparently the behaviour was changed in 3.1 and 2.7.
The top answer here explains it Apparently the behaviour was changed in 3.1 and 2.7.
ikanreed on 2012/05/12 18:34:
Good job on finishing well within the time limit.