- This event has passed.
7 PM – Python Game Development
February 23, 2022 @ 7:00 pm - 8:00 pm
Today:
- Went over the homework to add animation and finish the enemy map navigation.
- We added the tower.
- We added the health indicator.
Homework:
- Create a new sprite class called Bullet. Use the the image “assets/images/red_projectile2.png”. for the bullet’s self.image attribute.
- Add a method to create bullet inside main.py called launch_bullet, that every 120 frames launches a new bullet. Make it so that your tower will create one bullet moving to the right about every 3 seconds.
- Bonus: first add a direction parameter to your Bullet class to face and move it the correct direction provided which is measured in degrees. Then inside the tower, create 4 bullet every 3 seconds, but make it so the bullets face different directions and move different directions, as in the example below. A bullet should be created with each of these directions: 45, 135, 225, and 315.