-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ad50fa
commit 7c4ff04
Showing
8 changed files
with
71 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
import simpleaudio as sa | ||
try: | ||
|
||
filename = '/src/python/invaders/invader.wav' | ||
background = sa.WaveObject.from_wave_file('invader.wav') | ||
invader_hit = sa.WaveObject.from_wave_file('invaderhit.wav') | ||
player_hit = sa.WaveObject.from_wave_file('playerhit.wav') | ||
import simpleaudio as sa | ||
|
||
background = sa.WaveObject.from_wave_file('invader.wav') | ||
invader_hit = sa.WaveObject.from_wave_file('invaderhit.wav') | ||
player_hit = sa.WaveObject.from_wave_file('playerhit.wav') | ||
|
||
def play(): | ||
global background | ||
background.play() | ||
|
||
def play(): | ||
global background | ||
background.play() | ||
|
||
def invader(): | ||
global invader_hit | ||
invader_hit.play() | ||
|
||
def invader(): | ||
global invader_hit | ||
invader_hit.play() | ||
|
||
def hit(): | ||
global player_hit | ||
player_hit.play() | ||
|
||
def hit(): | ||
global player_hit | ||
player_hit.play() | ||
|
||
except ImportError as e: | ||
def play(): | ||
return | ||
|
||
def invader(): | ||
return | ||
|
||
def hit(): | ||
return |