No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I found this little program for a game in a book. [CODE]class Tank (object): def _init_(self, name): self.name = name self.alive = True self.ammo = 5 self.armor = 60[/CODE] It is named tank.py When I import it in python and I try to add [CODE]my_tank = Tank("Bob")[/CODE] Python gives an … | |
I add a new name to this script, but when I want to quit and save it gives and error ValueError: need more than 2 values to unpack I have no idea what it means can someone help me? If you want to modify the program feel free... [CODE]filename = … | |
I was wondering if you could add new fonts to pygame and how you should do it. Does any one know how to do it? |