Skip to content
Snippets Groups Projects
Commit ea75380d authored by Jakob Kirsch's avatar Jakob Kirsch
Browse files

add sound

parent ac826766
No related branches found
No related tags found
No related merge requests found
main.py 100644 → 100755
#!/usr/bin/python3
'''
To add:
- fuel canisters
......@@ -192,6 +193,8 @@ class Game(arcade.Window):
shoot.center_y = self.player_sprite.center_y
self.shoot_list.append(shoot)
self.all_sprites_list.append(shoot)
sound = arcade.sound.Sound("sounds/shot.wav")
sound.play(pan=((180 < (self.player_sprite.angle + 90) < 360) - (0 < (self.player_sprite.angle + 90) < 180)))
def on_key_release(self, key, modifier):
if key == CONTROLS["run"]:
......
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment