American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development

February 27, 2021 @ 6:00 pm - 7:00 pm

  1. We went over how to launch fireball using SPACE key.
  2. We made sure the fireball launch from where the player location.
  3. We made the player able to face left and right.
  4. When the bird is outside the screen, we remove (kill()) the bird sprite because it is already outside the screen and cannot be seen anymore. If we don’t do this, the game will run out of memory.
  5. Homework:
    1. When the player face left, the fireball right now is still going to the RIGHT. Change the code so when we create the fireball, we need to pass the player direction into the fireball.
    2. Similar on how we removed the bird when it is outside the screen, remove the cloud and the fireball when it is outside the screen.

Details

Date:
February 27, 2021
Time:
6:00 pm - 7:00 pm
Event Categories:
,