American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

3 PM – Python Game Development

September 25, 2021 @ 3:00 pm - 4:00 pm

Today We Do

  1. We were able to display a different type of tower of purchase.
  2. We displayed price below tower of purchase.

Homework

For Everyone
  1. In TowerForPurchase.py, add one more tower_type, it needs to have at least 3 tower type.
  2. For each tower type, please accurately put, the attack point and price according to your project proposal.
  3. Currently, inside TowerForPurchase.py, the price is display on the middle of the image, reposition the price so it appears under each tower nicely. Add jewel image to the left of the price. You might need to resize the font to 25 and resizel the jewel to be 0.4 to look nicely. Look at below image for reference.
  4. In your main.py, make sure you have self.coins and set the value to according to your project proposal. This is going to be used to purchase tower. And display this coins right next by the jewel image on top left corner.
  5. Find a good position where you can place all 3 different types of TowerForPurchase on the screen where it is not overlapping with other text.
  6. Fix your landing page. Your landing page should have a play button and a title image on top of it. If your play button is too large, please fix it.
For Bradley, Corey and Raelyn
  1. Currently, you put “Coins: 500” on jewels1(self) method, but you did not use self.coins. Because of this even if you purchase the tower, the Coins will always be displayed 500 on the screen. Make sure to use self.coins in your text.
  2. Fix your Game Over page, currently nothing is displayed when health is <= 0, figure out why.

For Kyle and Anderson

  1. Make sure your health, score and coins are displayed properly on the screen. Not too big and not too small. And of course not overlapping with anything.

 

Details

Date:
September 25, 2021
Time:
3:00 pm - 4:00 pm
Event Categories:
,
Verified by MonsterInsights