American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development – Joel

March 21 @ 6:00 pm - 7:00 pm

Today we did:
  1. We worked on the flap timer, and added the player sprite and class.
Homework:
  1. 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.
  2. In the game loop, don’t forget to update the player_group.
  3. 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.
  4. Make sure to do your homework and push it to GitLab before next week.
  5. If you have any questions, feel free to email me at joel@ayclogic.com.

Details

Date:
March 21
Time:
6:00 pm - 7:00 pm
Verified by MonsterInsights