American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

2 PM – Python Object Oriented Programming – Sebastian

December 23, 2023 @ 2:00 pm - 3:00 pm


Today We Did

  1. Created player class & recalled why we need to inherit Sprite
  2. Cloned entire new repository & set up PyCharm
  3. 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
  4. Keep in mind AYC Logic’s observed holidays are found here:
    https://www.ayclogic.com/observed-holidays/
  5. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. 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.

    1. Hints:
      – 1 line of code is necessary
      – Method name is “scale()”
    2. Fill out:
      player_image = pygame.SOMETHING.scale(player_image, (SOMETHING, SOMETHING) )

Details

Date:
December 23, 2023
Time:
2:00 pm - 3:00 pm
Event Categories:
,
Verified by MonsterInsights