Loading Events

« All Events

  • This event has passed.

9 AM – Python Game Development

October 10 @ 9:00 am - 10:00 am

  1. We were able to make the dragon flaps its wings by looping through 4 of its images/costumes.
  2. Homework:
    1. Right now the dragon is flapping its wing too fast. You need to make it flaps slower. How to make it slower:
      1. Inside main.py, look at how we made the creation of birds slower. Look at “create_bird(self): function on how we use “self.create_bird_timer”. Try to understand this code.
      2. Inside main.py, look at how we made the creation of clouds slower. Look at “create_cloud(self): function on how we use “self.create_cloud_timer”. Try to understand this code.
      3. Inside player.py:
        1. Inside __init__(), you need to create “self.flap_wing_timer = 10”
        2. Inside “update()” right now it is calling below code all the times
        3. self.image = self.next_costume()
        4. Somehow by using timer you need to make call to above code less frequent.

Details

Date:
October 10
Time:
9:00 am - 10:00 am
Event Categories:
,