American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7:30 PM – Python Game Development – Bill

April 1 @ 7:30 pm - 8:30 pm

Your HW:
  1. Create a new file called bullet.py
    1. Make it a sprite similar to cloud but with only 1 image
    2. Make it be able to move left or right based on the direction attribute
    3. Test it out in both directions so that it 100% works
  2. In the main, create a bullet group and make sure to update it in the game loop
    1. Create a spawn_bullet method that is also called in the game loop
    2. In the spawn_bullet method, check if the player presses the space bar
      1. When they do, create a new bullet and add it to the bullet group

Details

Date:
April 1
Time:
7:30 pm - 8:30 pm
Verified by MonsterInsights