American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM Python Game Development Makeup

September 1, 2019 @ 1:00 pm - 2:00 pm

  1. We reviewed homework last week.
  2. We added hitbox for bird and bullet.
  3. When bullet hit the bird, the bird will disappear.
  4. We check if player hit the bird, the player will print I die.
  5.  Homework:
    1. 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/
    2. In Player class, check if player collide with any of the bird
    3. Add a new attribute in Player called “is_alive” .The beginning value of this attribute is True.
    4. When the Player collide with any of the bird, set player is_alive to False.
    5. In main.py, add a condition to only call player.update with player.is_alive == True.

Details

Date:
September 1, 2019
Time:
1:00 pm - 2:00 pm
Event Categories:
,