American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Python Game Development

March 20, 2021 @ 1:00 pm - 2:00 pm

  • We went over the homework to slow down player flapping wings and spawned clouds from left and right.
  • We made fireball launched with pressing the space key and added a cool-down period before another fireball can be launched.
  • I’ve uploaded the source code here.
  • Homework:
    • Make clouds that move the right spawn off the screen. Hint: use an offset. In other words you need to make sure the clouds moving to the right spawn outside the birdie screen. So you want them to be more like Cloud 2 than Cloud 1 below:
    • Do some reading on “pygame.Rect” and how it is used to handle collisions.  Read pages 247 and 248, and from pages 268 and 269.  Then think about how we can use these techniques to kill birds that get shot by the fireballs.

Details

Date:
March 20, 2021
Time:
1:00 pm - 2:00 pm
Event Category: