- This event has passed.
7 PM – Python Game Development
January 26, 2022 @ 7:00 pm - 8:00 pm
Today:
- We went over the homework to add the game over page and tank destroyed sound effects.
- We enabled the enemy tank to move.
- We delayed switching the game mode to game won when the enemy tank is destroyed.
Homework:
- Add a new sprite called TankExplosion that gets created when either the enemy tank is destroyed or the play tank is destroyed. Make sure to create the explosion where the tank that was destroyed was located. The TankExplosion sprite should show a series of frames starting with “assets/Tank_Explosion/Tank_Explosion_0.png”, and when you reach the last frame, destroyed the sprite using “self.kill()”.
- Delay switching the game mode to game over when the player tank is destroyed, using the same technique that we used in class.