American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Python Game Development

February 26, 2022 @ 1:00 pm - 2:00 pm

Today:

  • We went over the homework to center the bullet’s initial creation position, and added collision detection between the enemy tank and the bricks.
  • We added logic so the enemy tank faces the enemy turret in the direction of the player tank.

Homework:

  • Add some game modes: GAME_LANDING_PAGE and GAME_IN_SESSION.  Define a new attribute self.mode inside tank game originally set to GAME_LANDING_PAGE. Define a new method called handle_landing_page, that shows the landing page like below:
  • When you click the Play button switch the mode to GAME_IN_SESSION and show all the logic that we added previously with the two tanks etc.  You can follow previous examples we for handling the landing page in Birdie etc.
  • Bonus: Add collision detection between the player tank and the enemy tank and switch to GAME_LANDING_PAGE when the enemy tank gets destroyed.

Details

Date:
February 26, 2022
Time:
1:00 pm - 2:00 pm
Event Categories:
,
Verified by MonsterInsights