« All Events
7 PM – Python Game Development – Sebastian
October 16, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Finished drawing double tubes
- Started Coin class
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/MON-7PM-FlappyBird/-/tree/Sebastian?ref_type=heads - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework to the corresponding project’s folder in your Google Drive
- Homework: Handle how coins collect their images and display them.
- Inside coin.py, in the constructor, you will loop through each suffix in Coin.COIN_SUFFIX. Each time, you will create a new pygame image with that suffix (either 1/2/3), and you will append it to our self.images list.
- Inside coin.py, blit our coin to the screen and decrement its self.x attribute by the “TUBE_SPEED” global variable.
- In main.py, in our game loop, call update on our coin group.