American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7:00 PM – Python Game Development – Darin

October 15 @ 7:00 pm - 8:00 pm

What We Did Today:

  1. Created logic for alternating costumes
  2. Tidied up the code by refactoring
  3. Spawned the score variable onto our screen

Homework:

# homework
# spawn the coins into the game, but place them in between the tubes (you can place them in two fixed locations up and down)
# define collisions for them as we did with the duck and tubes
# when a collision happens, increment score by 2, and make the coin disappear
# you can make it disappear by setting dokillb to True in
# "pygame.sprite.groupcollide(self.player_group, self.coin_group, False, True, self.player_coin_coll"

# make sure also that the coin changes costumes.

Notes:

All class notes can be found here: https://gitlab.com/billhan5732/wed-630-flappy-duck-bill/-/tree/bill/src

You can reach me at ddjapri@ayclogic.com

Details

Date:
October 15
Time:
7:00 pm - 8:00 pm
Event Categories:
,