Added the fireball and made it shoot from the players location, and triggered it on command using the space key We added a timer for launching the fireball a bit differently, where we only reset the timer value when the space key is pressed so that there is no delay
# for your homework, I want you to add in the code that creates a fireball, a way to make the fireball change directions depending on if the player is facing the right or the left # Step 1: Add a direction attribute in the fireball class # Step 2: Make the fireball move to the right or to the left depending on self.direction in the fireball class # Those 2 parts should be similar to the bird class^ # Step 3: grab the direction of the player in main using self.player.direction, and pass that as a fireball parameter.
# We will go over this in more detail on Monday!
when you are done submitting this, by Sunday night I will leave comments to your homework so you will need to update your project from the upper left, and if it asks you to merge, merge yours
If you have any questions, feel free to email me at ddjapri@ayclogic.com