- This event has passed.
6 PM – Python Game Development – Joel
September 30 @ 6:00 pm - 7:00 pm
Today we did:
- We continued with BirdieDragon.
Homework:
- Create a fireball group in the main. Then, create a create_fireball function, where a fireball is spawned if the user clicks on the space bar (pygame.K_SPACE). If the user presses the space bar, spawn a fireball with the same direction as the player, and in the same position as the player.
- Don’t forget to call the update function for the fireball group.
- Make a groupcollide function near where we did it for the bird and player in the game loop. This one should be for the fireball and bird. Think about which one should be killed (dokilla, dokillb).