« All Events
2 PM – Python Object Oriented Programming – Sebastian
December 2, 2023 @ 2:00 pm - 3:00 pm
Today We Did
- Added rectangles to all classes
- Removed sprites when they go off screen
- Added giant fireballs
- Learned about & created event listeners
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/sat-2-pm-dragon-birdie/-/tree/Sebastian?ref_type=heads - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Complete the player_bird_collision method inside main.py as described in class:
def player_bird_collision(self, player, bird):
if player.rect.colliderect(bird.rect):
"""
HOMEWORK:
Think, what should happen when a bird hits you?
(2 things, you can be creative)
"""
return True
else:
return False