American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Python Game Development

May 14, 2022 @ 1:00 pm - 2:00 pm

Today:

  1. We went over the homework to add a type to the enemy.
  2. We added the tower hotspot sprite.
  3. We added the ShootingTower sprite.
  4. 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.

Details

Date:
May 14, 2022
Time:
1:00 pm - 2:00 pm
Event Category:
Verified by MonsterInsights