« All Events
6 PM – Python Game Development – Sebastian
November 14, 2023 @ 6:00 pm - 7:00 pm
Today We Did
- Class set up new repository
- Blitted background image
- Created Tube class
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/tue-6-pm-dragon-birdie/-/tree/TUE-6PM-Sebastian - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- NOTE: No class next week (11/21) due to AYC Logic’s Holiday schedule (early Thanksgiving break)
- Homework: Finish creating and updating a tube using our new class.
- Create tube (follow instructions from my latest push):
def create_tube(self):
"""
decrement timer by 1
if timer reaches 0,
reset timer to CREATE_TUBE_DELAY
tube1_y = random y from list with -200, -250, 300
create tube object & pass in WIDTH, tube1_y, 1, screen
add tube to group
"""
- Inside game loop:
# Call create_tube
# Update tube_group attribute