American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro To Python – Darin

April 1 @ 5:00 pm - 6:00 pm

What We Did Today:

  1. 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

Homework:

  • # 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

Notes:

If you have any questions, feel free to email me at ddjapri@ayclogic.com

Details

Date:
April 1
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights