- This event has passed.
7 PM – Python Game Development
March 23, 2022 @ 7:00 pm - 8:00 pm
Today:
- We went over the homework to add the coins indicator.
- We added the start waves button.
- We added code for handling enemy waves.
Homework:
- Add configs for three different enemy types: ENEMY_1, ENEMY_2, ENEMY_3.
- Inside enemy.py sprite, depending on the enemy_type, load a different image corresponding to the name of the directory.
- Make sure that you can load different enemy types with the three series of image animation where the given type of enemy is walking.
- 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.