- This event has passed.
10 AM – Python Game Development
July 18, 2020 @ 10:00 am - 11:00 am
- We restrict the movement of player so it is not out of the screen.
- We added 2 mode, GAME_STARTED and GAME_NOT_STARTED.
- We made the sound effect volume less loud.
- Homework:
- Create a function, “handle_game_in_session(self)”
- Inside the function, call the following functions
- self.create_all_sprites()
- self.handle_all_sprites_collission()
- Inside the function, call the following functions
- Crete a function, “handle_game_not_in_session(self)”
- Inside the function, call the following functions
- self.control_bird_creation()
- self.control_cloud_creation()
- Inside the function, call the following functions
- Change game_loop(self):
- Based one self.mode, you need to either call self.handle_game_in_session(self) or self.handle_game_not_in_session(self)
- You probably need to remove some of the code in game_loop to make sure there are no codes being called more than once.
- Create a function, “handle_game_in_session(self)”