- This event has passed.
2 PM – Python Object Oriented Programming – Sebastian
December 23, 2023 @ 2:00 pm - 3:00 pm
Today We Did
- Created player class & recalled why we need to inherit Sprite
- Cloned entire new repository & set up PyCharm
- 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 - Keep in mind AYC Logic’s observed holidays are found here:
https://www.ayclogic.com/observed-holidays/ - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Use the dot operator with pygame to find the correct method to resize our player image to the size specified by “self.size” attribute.
- Hints:
– 1 line of code is necessary
– Method name is “scale()” - Fill out:
player_image = pygame.SOMETHING.scale(player_image, (SOMETHING, SOMETHING) )