American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

4 PM – Python Game Development – Latisha

July 30, 2022 @ 4:00 pm - 5:00 pm

Gamas subs

Today We Did
  1. We continued with Birdie Dragon project.
  2. We learned how to make the bird appear from both the left and right edges of the screen.
  3. We learned about Pygame directions: Left, Right, Up, Down are 180, 0, 90, and 270.
  4. We learned how to flip images horizontally. We use this when Bird appears from the right side of the screen going to the left.
  5. We created config.py to store all of the constants.
Homework
  1. Make the clouds appear from left and right side of the screen. Similar on how we did for Birds. Also, make the clouds less frequent to be created.
  2. Inside the main.py there are nowself.create_bird_timer = 60 and self.create_cloud_timer = 70 please moved 60 to config.py and name it CREATE_BIRD_DELAY. Same thing for the 70 and name it CREATE_CLOUD_TIMER.
  3. When the cloud appears from the left side of the screen, it suddenly just pops on the screen. Change the code so the cloud can glide from off the screen into the screen.

Details

Date:
July 30, 2022
Time:
4:00 pm - 5:00 pm
Event Categories:
,
Verified by MonsterInsights