« All Events
7 PM – Python Game Development – Sebastian
October 23, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Finished code to load the 3 different kind of coin images
- Finished the code to flip coin images
- 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: Load images and begin drawing player
- In player.py, in the Player class’s constructor:
for each suffix in Player.BIRD_SUFFIX:
image = pygame image using suffix
add to list - In player.py, in update:
get next costume, and blit the image it returns - In player.py, in next_costume:
get new image from self.flying images like we did in coin.py - In main.py, in the constructor for FlappyBird:
create a bird group, and add a Player object to the bird group - In main.py, in game_loop:
update bird group