« All Events
7 PM – Python Game Development – Sebastian
October 9, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Set up and began flappy bird project
- Create & blitted background image
- Brain stormed all the sprite’s we’ll need and created their classes
- Developed basic Tube 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
- Homework: Create a Tube object and add it to a new tube_group in the constructor, then blit it in our game_loop. As we went over in class, specifically you will:
- Create Tube object (local variable):
– for x/y, think: where should the x/y of a downtube be? try different x/y positions until it looks alright
– for type, pass 1 (represents downward later)
– for screen, pass self.screen Create tube_group (attribute):
– Create pygame Group() object from sprite file
– Add Tube object from above to tube group
Blit tube group (update)