« All Events
7 PM – Python Game Development – Sebastian
October 30, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Added more functionality to player class
- Flapping wings by cycling through images list
- Added gravity by decrementing y attribute by a constant value
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/MON-7PM-FlappyBird/-/tree/Sebastian?ref_type=heads - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Make your Player “jump” every time you click the space key
- Inside player.py, in update(), after you check if the user clicks space, set the fall_speed attribute to -JUMP_HEIGHT