- This event has passed.
1 PM Python Game Development Makeup
September 1, 2019 @ 1:00 pm - 2:00 pm
- We reviewed homework last week.
- We added hitbox for bird and bullet.
- When bullet hit the bird, the bird will disappear.
- We check if player hit the bird, the player will print I die.
- Homework:
- If you have not done so, take a picture of your self and upload into Player class. Before you upload, make sure you remove all the background section in your picture. https://firealpaca.com/
- In Player class, check if player collide with any of the bird
- Add a new attribute in Player called “is_alive” .The beginning value of this attribute is True.
- When the Player collide with any of the bird, set player is_alive to False.
- In main.py, add a condition to only call player.update with player.is_alive == True.