American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development

October 10, 2021 @ 7:00 pm - 8:00 pm

Today:

  • We went over the homework
  • We learned about sprites and added the bird sprite. I’ve uploaded the source code here.

Homework:

  • Create a new file called “cloud.py” for the clouds that move across the screen.  You can use the cloud image “cloud1.png”.  Create a sprite class inside this file called “Cloud”, and make sure it has these attributes:
    • self.x
    • self.y
    • self.image
    • self.screen
  • Add an update method to the Cloud class so that it can be drawn on the screen
  • Import the Cloud class into main file
  • Create a self.cloud attribute inside the Birdie __init__ method.
  • Call the self.cloud.update() method inside the game_loop method to draw the cloud on the screen.
  • Make sure the cloud moves toward the left.

Details

Date:
October 10, 2021
Time:
7:00 pm - 8:00 pm
Event Category:
Verified by MonsterInsights