- This event has passed.
6 PM – Python Game Development
April 13, 2021 @ 6:00 pm - 7:00 pm
- We continued with Wack-a-mole final project.
- We displayed the 3 hearts on the top right corner of the screen.
- We made sure that the hammer can only hit the mole and get a point when the mole is in the IDLE mode.
- We added some randomness to the mole transitions so they don’t all appear at the same time in the beginning.
- Homework:
- When mole attack (mole.py), you need to reduce the self.life in the main.py.
- You need to add the following game_mode in config:
- GAME_LANDING_PAGE
- GAME_IN_SESSION
- GAME_OVER
- GAME_WIN
- GAME_CREDITS
- 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.
- 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.