- This event has passed.
7 PM – Python Game Development
March 16, 2022 @ 7:00 pm - 8:00 pm
Today:
- We went over the homework to place towers on the hotspots.
- We added the cancel tower button.
- We deducted health when the enemy gets passed all the towers.
Homework:
- Draw the number of coins the player has left, create a new self.coin attribute that stores the amount of coins the player has left. You can use a similar technique to how we drew the amount of health left.
- When the user purchases a tower and the floating TowerForPurchase gets created (after clicking on the non floating TowerForPurchase), subtract the the price of the TowerForPurchase from the amount of coins left. You should be able to see your coins decrease as you buy more towers.
- Prevent the user from selecting another TowerForPurchase if they don’t have enough money.