« All Events
6 PM – Python Game Development – Joel
March 21 @ 6:00 pm - 7:00 pm
Today we did:
- We worked on the flap timer, and added the player sprite and class.
Homework:
- In the constructor of the Birdie class (main file), create a player. Fill in all the attributes (direction right now doesn’t really matter, fill it in with LEFT or RIGHT). Remember to make the player group as a sprite.GroupSingle(), as there is only one player. Add the player into the group.
- In the game loop, don’t forget to update the player_group.
- If the player’s bird is really big after doing this, all you need to do is set self.image to self.right_images[0] instead of the path f”assets/player-1.png” in the Player class.
- Make sure to do your homework and push it to GitLab before next week.
- If you have any questions, feel free to email me at joel@ayclogic.com.