American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7PM – Python Game Development

December 16, 2020 @ 7:00 pm - 8:00 pm

  • Today we finished setting up PyCharm and started the Birdie project from the Birdie Template.
  • Your homework is to draw the blue “scene.png” as the background.
    • Insert this line of code at the end of the __init__ method to load the “scene.png” image:
      • self.background = pygame.image.load('assets/scene.png')
    • Then insert this line of code inside the “game_loop” method after “pygame.display.flip()” to draw this blue “background” image onto the screen:
      • self.screen.blit(self.background, (0, 0))
    • When you’re done  you should see a blue window rather than a black window when you run by clicking the green triangle.

Details

Date:
December 16, 2020
Time:
7:00 pm - 8:00 pm
Event Categories:
,