American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

SAT – 9 AM – Indo – Python Game Development – Joel

March 30 @ 9:00 am - 10:00 am

Today we did:
  1. We worked on the balloon class.
  2. We made sure to have all colors of the balloon, as well as the update method.
  3. We created a balloon group in main, as well as the create_balloon function, and called them in the game loop.
Homework:
  1. Choose the assets you want to use in your project.
  2. Make sure you’re NOT working on the master branch, but on your own branch.
  3. Make sure that in your Balloon class, you’re setting self.image to the random.choice(self.images), as this will create balloons with different colors.
  4. Create a new class called Target, and you can copy the code from another class. Load the red_star as the image. You can add or remove anything you feel you need to add or remove, but in the update function, you are going to take the mouse’s x and y and that will be the target’s x and y.
  5. In the main, create the target in the constructor with x and y arguments being the center of the screen, and put it in a single group (GroupSingle). Then simply call the update on the group in the game loop.

If you have any questions, feel free to email me at joel@ayclogic.com or Mr. Gamas at gamas@ayclogic.com.

Details

Date:
March 30
Time:
9:00 am - 10:00 am
Verified by MonsterInsights