American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

3 PM Python Game Development

September 28, 2019 @ 3:00 pm - 4:00 pm

  1. We reviewed last week homework.
  2. We reviewed Inheritance in Python.
  3. We reviewed how making BouncingBall and Player classes inherits from Sprite would benefit the game making process. Especially handling of collision using pygame.sprite.groupcollide
  4. We went over how to make the ball bounce when it hits the paddle.
  5. We passed Pong class to BouncingBall class so we can call Pong.ball_hit_edge() when the ball hit either the left or right edge.
  6. Homework:
    1. When ball hit the left edge: increase the orange player score.
    2. When ball hit the right edge: increase the blue player score.

Details

Date:
September 28, 2019
Time:
3:00 pm - 4:00 pm
Event Categories:
,