Created
June 12, 2021 15:02
-
-
Save PatrickKalkman/702294dffcd5b760ca48c00af8ceddb0 to your computer and use it in GitHub Desktop.
The method to scoot a rocket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def shoot_rocket(self): | |
rocket = Rocket(self.sprites, 0, -15) | |
rocket.rect.centerx = self.player.rect.centerx | |
self.all_rockets.add(rocket) | |
self.all_sprites.add(rocket) | |
self.shoot_sound.play() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment