Modifica la gestione del ritardo nella classe GameWindow e ripristina l'uso di subprocess per la riproduzione audio in MiceMaze
This commit is contained in:
@@ -89,8 +89,8 @@ class MiceMaze(controls.KeyBindings):
|
||||
|
||||
def play_sound(self, sound_file):
|
||||
if self.audio:
|
||||
#subprocess.Popen(["aplay", f"sound/{sound_file}"])
|
||||
self.engine.play_sound(f"sound/{sound_file}")
|
||||
subprocess.Popen(["aplay", f"sound/{sound_file}"])
|
||||
#self.engine.play_sound(f"sound/{sound_file}")
|
||||
|
||||
def graphics_load(self):
|
||||
self.tunnel = self.engine.load_image("Rat/BMP_TUNNEL.png")
|
||||
|
||||
Reference in New Issue
Block a user