Dateien hochladen nach „“
parent
4008b82f8d
commit
bf0b1813c6
|
@ -34,10 +34,16 @@ class game():
|
|||
try:
|
||||
self.sounddevice = __import__("sounddevice")
|
||||
except OSError:
|
||||
print("ERROR: Could not port audio library. so that means that no audio can be played.")
|
||||
print("ERROR: Could not find port audio library. so that means that no audio can be played.")
|
||||
input("enter to continue")
|
||||
self.sounddevice = False
|
||||
try:
|
||||
self.soundfile = __import__("soundfile")
|
||||
|
||||
except OSError:
|
||||
print("ERROR: Could not find sndfile library. so that means that no audio can be played.")
|
||||
input("enter to continue")
|
||||
self.sounddevice = False
|
||||
self.soundfile = __import__("soundfile")
|
||||
self.pressedkeys = {}
|
||||
for i in string.ascii_letters:
|
||||
self.pressedkeys[i] = False
|
||||
|
|
Loading…
Reference in New Issue