« All Events
7 PM – Python Game Development – Sebastian
August 28, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Gave each object their own hit box when we set “TESTING” mode to True
- Configured group collisions for the fireball and bird groups
- 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
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Please submit your homework by Sunday night
- 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.
- Lets make some new global variables. It’s your job to try and figure out which file we should add these in.
- Set new global variable “GAME_LANDING_PAGE” to 1
- Set new global variable “GAME_IN_SESSION” to 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:
- game_landing_page()
- draw_play_button_and_title()
- 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.