Abilita l'audio nel gioco MiceMaze

This commit is contained in:
2024-12-15 19:04:45 +01:00
parent 3ccffdca7d
commit 05c07e30f6
+2 -1
View File
@@ -1,3 +1,4 @@
#!/usr/bin/python3
import cProfile
import pstats
import random
@@ -9,7 +10,7 @@ from engine import maze, sdl2 as engine
class MiceMaze:
def __init__(self, maze_file):
self.map = maze.Map(maze_file)
self.audio = False
self.audio = True
self.cell_size = 60
self.engine = engine.GameWindow(self.map.width, self.map.height, self.cell_size, "Mice!", key_callback=self.key_pressed)
self.graphics_load()