Add Sounds

This commit is contained in:
Jonas Zeunert
2022-08-30 21:51:19 +02:00
parent 73c7837e97
commit 401b3a332b
30 changed files with 160 additions and 1 deletions

View File

@@ -1,4 +1,3 @@
from networking.Networking import Networking
from utils.util import normalizeName
from __main__ import networking

9
Sound.py Normal file
View File

@@ -0,0 +1,9 @@
from __main__ import networking
class Sound:
def __init__(self, id):
self.name = "Sound " + str(id)
pass
def play(self, name):
networking.playSound(self.name)

5
sounds/AnotherCoin.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class AnotherCoin(Sound):
def __init__(self):
self.name = '''Speech 15: "Another coin please."'''

5
sounds/BeCareful.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class BeCareful(Sound):
def __init__(self):
self.name = '''Speech 11: "Be careful."'''

5
sounds/ChallengeChamp.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class ChallengeChamp(Sound):
def __init__(self):
self.name = '''Speech 5: "Challenge the champ!"'''

5
sounds/Countdown.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Countdown(Sound):
def __init__(self):
self.name = '''Speech 4: "Five, Four, Three, Two, One."'''

5
sounds/GameTimeBonus.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class GameTimeBonus(Sound):
def __init__(self):
self.name = '''Speech 13: "Be ready for the Game Time Bonus."'''

5
sounds/GoSpecial.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class GoSpecial(Sound):
def __init__(self):
self.name = '''Speech 27: "Go for the Special."'''

5
sounds/HighLevel.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class HighLevel(Sound):
def __init__(self):
self.name = '''Speech 20: "Go for the high level board."'''

5
sounds/IAmChamp.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class IAmChamp(Sound):
def __init__(self):
self.name = '''Speech 17: "I am the champ! Challenge me!"'''

5
sounds/LowScore.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Seconds(Sound):
def __init__(self):
self.name = '''Speech 9: "What a low score!"'''

5
sounds/MaxScore.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Seconds(Sound):
def __init__(self):
self.name = '''Speech 8: "This is a maximum score."'''

5
sounds/Naughty.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Naughty(Sound):
def __init__(self):
self.name = '''Speech 14: "That's naughty!"'''

5
sounds/PlayGently.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class PlayGently(Sound):
def __init__(self):
self.name = '''Speech 21: "Play gently to beat me."'''

5
sounds/Quick.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Quick(Sound):
def __init__(self):
self.name = '''Speech 22: "Quick! Hit the Special"'''

5
sounds/Red.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Red(Sound):
def __init__(self):
self.name = '''Speech 25: "Red"'''

5
sounds/Seconds.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Seconds(Sound):
def __init__(self):
self.name = '''Speech 3: "Seconds"'''

5
sounds/ShootSpecial.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class ShootSpecial(Sound):
def __init__(self):
self.name = '''Speech 23: "Shoot the special."'''

5
sounds/SpecialAgain.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class SpecialAgain(Sound):
def __init__(self):
self.name = '''Speech 19: "Once again for the special."'''

5
sounds/TheLastBall.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class TheLastBall(Sound):
def __init__(self):
self.name = '''Speech 12: "The last ball."'''

5
sounds/Thirty.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Thirty(Sound):
def __init__(self):
self.name = '''Speech 24: "Thirty"'''

5
sounds/TimeOver.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class TimeOver(Sound):
def __init__(self):
self.name = '''Speech 16: "Sorry. The time is over."'''

5
sounds/TimeShort.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class TimeShort(Sound):
def __init__(self):
self.name = '''Speech 18: "Time is short."'''

5
sounds/TryHarder.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class TryHarder(Sound):
def __init__(self):
self.name = '''Speech 10: "Try harder!"'''

5
sounds/Twenty.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Twenty(Sound):
def __init__(self):
self.name = '''Speech 2: "Twenty"'''

5
sounds/WoW.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class WoW(Sound):
def __init__(self):
self.name = '''Speech 7: "WoW."'''

5
sounds/Yellow.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class Yellow(Sound):
def __init__(self):
self.name = '''Speech 26: "Yellow"'''

5
sounds/YoureChamp.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class YoureChamp(Sound):
def __init__(self):
self.name = '''Speech 6: "Good. You're a champ!"'''

5
sounds/YoureGood.py Normal file
View File

@@ -0,0 +1,5 @@
from Sound import Sound
class YoureGood(Sound):
def __init__(self):
self.name = '''Speech 1: "You're good! But I'm still the Champ!"'''

16
sounds/__init__.py Normal file
View File

@@ -0,0 +1,16 @@
__all__ = []
import pkgutil
import inspect
__path__ = pkgutil.extend_path(__path__, __name__)
for loader, name, is_pkg in pkgutil.walk_packages(__path__):
module = loader.find_module(name).load_module(name)
for name, value in inspect.getmembers(module):
if name.startswith('__'):
continue
globals()[name] = value
__all__.append(name)