- This event has passed.
3 PM – Python Game Development
September 25, 2021 @ 3:00 pm - 4:00 pm
Today We Do
- We were able to display a different type of tower of purchase.
- We displayed price below tower of purchase.
Homework
For Everyone
- In TowerForPurchase.py, add one more tower_type, it needs to have at least 3 tower type.
- For each tower type, please accurately put, the attack point and price according to your project proposal.
- 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.
- 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.
- 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.
- 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
- 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.
- Fix your Game Over page, currently nothing is displayed when health is <= 0, figure out why.
For Kyle and Anderson
- 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.