American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

12 PM – Python Game Development

October 17, 2020 @ 12:00 pm - 1:00 pm

  1. Homework:
    1. In Flappy Duck project:
      1. Create a new file: score_line.py
      2. Inside the file, create a new class called ScoreLine.
      3. the class should inherits from pygame.sprite.Sprite.
      4. Inside the __init__,
        1. It would have parameters: x, y, height, screen
        2. create a self.rect (the hitbox) with width of 5 pixel and height from the parameter
      5. Inside the update() function, draw the rectangle on the screen.
    2. As a bonus point, you can try to integrate this sprite into main.py.

Details

Date:
October 17, 2020
Time:
12:00 pm - 1:00 pm
Event Categories:
,
Verified by MonsterInsights