- This event has passed.
1 PM – Python Game Development
April 30, 2022 @ 1:00 pm - 2:00 pm
Today:
- We went over the homework and added the landing page and added the target pointer sprite
- We added waves and a way to keep track of the current wave.
Homework:
- Update “create_enemy” to add a timer. You can define a ENEMY_CREATION_DELAY of 40 frames and a new attribute enemy_creation_timer that keeps track of when it’s possible to create a new enemy. Create a new enemy when enemy_creation_timer is equal or less than zero and the current wave has enemy types in it.
- Add animation to the Enemy sprite. Get rid of the self.image attribute and create a new self.images attribute that uses all 9 images from “2_enemies_1_WALK_000.png” to “2_enemies_1_WALK_009.png”. Use similar techniques that we used for animation previously to alternate sequentially between all the different images in self.images to determine which image gets drawn on the screen.