« All Events
9 AM – Python Game Dev – Indo – Gamas
May 11 @ 9:00 am - 10:00 am
Today We Did
- We learned about Bird class
- We learned about pygame.sprite.Group for bird_group.
- We learned how to specify bird location when creating a new Bird class.
Homework
- 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.
- Create a new python file cloud.py
- Create Cloud class inside the file. Look at example in bird.py
- The Cloud class needs to use the cloud1.png
- Inside main.py
- Create cloud_group, similar to bird_group that you already created.
- Add Cloud to the cloud_group
- Call cloud_group.update inside game_loop()
- If you need to see the latest version of what we did in the class, you can click here to see my latest codes.
- Submit your homework to gitlab (commit and push)