- This event has passed.
6 PM – Python Game Development
July 21, 2021 @ 6:00 pm - 7:00 pm
Today:
- We went over the homework to handle player coin collisions and increment score, and we added the landing page.
- We added the countdown timer, and refactored the play button into it’s own method.
- I’ve uploaded the source code here.
Homework:
- Add a title/logo to the landing page above the play button.
- Create a new mode GAME_OVER.
- When the player dies, switch to GAME_OVER mode.
- When the mode is GAME_OVER draw a new game over page in a new method called “handle_game_over_page”. The game over page should should show “Game Over” text over the Play button.
- Create a new mode GAME_WON.
- When countdown timer gets to zero, switch to GAME_WON mode.
- When the mode is GAME_WON draw a new game won page in a new method called “handle_game_won_page”. The game won page should should show “Game Won” text over the Play button.