- This event has passed.
1 PM – Python Game Development
May 14, 2022 @ 1:00 pm - 2:00 pm
Today:
- We went over the homework to add a type to the enemy.
- We added the tower hotspot sprite.
- We added the ShootingTower sprite.
- We went over how to create the shooting tower when the floating tower collides with the target.
Homework:
- Review the “bullet.py” file in tank-game.
- Create a new Sprite called “Bullet” that takes x, y, size, direction, screen as parameters. The direction is the angle in degrees similar to what we used for “Bullet” sprite in the tank game project.
- Create a bullet_group attribute in main.py, and test you can add some bullets to it and they appear on the landing page screen. Test you can create a custom bullet anywhere on the screen. Play around with the degrees parameter to confirm bullets get rotated and move in the direction specified.