American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development – Sebastian

August 28, 2023 @ 7:00 pm - 8:00 pm

Today We Did
  1. Gave each object their own hit box when we set “TESTING” mode to True
  2. Configured group collisions for the fireball and bird groups
  3. You can always find the code we wrote in class in my Gitlab repository here:
    https://gitlab.com/gsugiart/mon-7-pm-dragon-birdie/-/tree/MON-7PM-Sebastian
  4. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Please submit your homework by Sunday night
  2. Homework: Our next steps will be to add a landing screen for our game. Your homework will ensure we get a head start on this.
    1. Lets make some new global variables. It’s your job to try and figure out which file we should add these in.
      1. Set new global variable “GAME_LANDING_PAGE” to 1
      2. Set new global variable “GAME_IN_SESSION” to 2
    2. Next, in main.py create the following methods which we will use for the landing page. We’ll go over what to put inside these methods in class, so for now just write “pass” as the method’s content:
      1. game_landing_page()
      2. draw_play_button_and_title()
    3. Finally, let’s add a new attribute in main.py called “self.mode” and set it to the global variable we made earlier called “GAME_LANDING_PAGE”. It’s your job to think of which method we should create this new attribute.

Details

Date:
August 28, 2023
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights