American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Python Game Development – Darin

May 13 @ 5:00 pm - 6:00 pm

What We Did Today:

  1. Continued on the Flappy Duck project, where we made the player flap, as well as added hit-boxes around the player and tubes, and we added collision detection.
  2. Learnt how to crop images using FireAlpaca (a free image editing software).

Homework:

  1. Attempt to make the player bird “flap”.
  2. You can start by making the bird automatically fall downwards first.
  3. Set your speed to a negative value, and then change the y position of the bird by adding the y position with the speed value: self.y += speed
  4. But every time the bird falls downwards (in other words, every time the update() method is called), decrease the value of “speed” so that the bird falls faster.
  5. After this, check for the space key to be pressed, and if it does get pressed, set the value to a positive value.

IMPORTANT NOTES:

You can contact me via ddjapri@ayclogic.com for any questions or concerns.

Details

Date:
May 13
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights