- This event has passed.
5 PM – Python Game Development – Darin
May 13 @ 5:00 pm - 6:00 pm
What We Did Today:
- 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.
- Learnt how to crop images using FireAlpaca (a free image editing software).
Homework:
- Attempt to make the player bird “flap”.
- You can start by making the bird automatically fall downwards first.
- 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
- 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.
- 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.