American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development

April 13, 2021 @ 6:00 pm - 7:00 pm

  1. We continued with Wack-a-mole final project.
    1. We displayed the 3 hearts on the top right corner of the screen.
    2. We made sure that the hammer can only hit the mole and get a point when the mole is in the IDLE mode.
    3. We added some randomness to the mole transitions so they don’t all appear at the same time in the beginning.
  2. Homework:
    1. When mole attack (mole.py), you need to reduce the self.life in the main.py.
    2. You need to add the following game_mode in config:
      1. GAME_LANDING_PAGE
      2. GAME_IN_SESSION
      3. GAME_OVER
      4. GAME_WIN
      5. GAME_CREDITS
    3. In main.py, add code to do GAME_LANDING_PAGE mode where you display play button. Copy play button image from birdie project into your final project.
    4. When you first start the program, it should start on GAME_LANDING_PAGE. After user click on the Play button, then the game will start.

Details

Date:
April 13, 2021
Time:
6:00 pm - 7:00 pm
Event Categories:
,