American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development

March 16, 2022 @ 7:00 pm - 8:00 pm

Today:
  1. We went over the homework to place towers on the hotspots.
  2. We added the cancel tower button.
  3. We deducted health when the enemy gets passed all the towers.

 

Homework:
  1. 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.
  2. 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.
  3. Prevent the user from selecting another TowerForPurchase if they don’t have enough money.

Details

Date:
March 16, 2022
Time:
7:00 pm - 8:00 pm
Verified by MonsterInsights