Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- elif pygame.key.get_pressed()[pygame.K_LSHIFT]:
- chosenTower = -1
- for i in range(len(towerHitboxes)):
- if towerHitboxes[i].collidepoint(mouse.get_pos()):
- chosenTower = i
- break
- if chosenTower>=0:
- curStats = towers[chosenTower]
- if len(towerStats[curStats['Name']])>=curStats['Level']+2:
- cost = towerStats[curStats['Name']][curStats['Level']+1]['Cost']
- if money>=cost:
- money -= cost
- curStats['Level'] += 1
- else:
- print("bro is poor")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement