American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development

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

Today:

  1. We went over the homework to add the coins indicator.
  2. We added the start waves button.
  3. We added code for handling enemy waves.

Homework:

  1. Add configs for three different enemy types: ENEMY_1, ENEMY_2, ENEMY_3.
  2. Inside enemy.py sprite, depending on the enemy_type, load a different image corresponding to the name of the directory.
  3. Make sure that you can load different enemy types with the three series of image animation where the given type of enemy is walking.
  4. Bonus: create a new method called “create_enemy_with_timer”. If the self.current_wave attribute has a length greater than three then create a new enemy.  Use the self.current_wave.pop() method to make the current wave smaller and look up the next enemy_type.  Delay the creating of enemies using the timer technique.  Don’t try to pop more enemy_types and create more enemies if self.current_wave is empty.

Details

Date:
March 23, 2022
Time:
7:00 pm - 8:00 pm
Event Category:
Verified by MonsterInsights