American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

9 AM – Python Game Dev – Indo – Gamas

May 11 @ 9:00 am - 10:00 am

Today We Did
  1. We learned about Bird class
  2. We learned about pygame.sprite.Group for bird_group.
  3. We learned how to specify bird location when creating a new Bird class.
Homework
  1. We want you to repeat what you have learned in the class which is creating Bird class, but this time, it would be Cloud class.
  2. Create a new python file cloud.py
  3. Create Cloud class inside the file. Look at example in bird.py
  4. The Cloud class needs to use the cloud1.png
  5. Inside main.py
    1. Create cloud_group, similar to bird_group that you already created.
    2. Add Cloud to the cloud_group
    3. Call cloud_group.update inside game_loop()
  6. If you need to see the latest version of what we did in the class, you can click here to see my latest codes.
  7. Submit your homework to gitlab (commit and push)

Details

Date:
May 11
Time:
9:00 am - 10:00 am
Verified by MonsterInsights