Browse Source

Abilita l'audio nel gioco MiceMaze

master
Matteo Benedetto 1 year ago
parent
commit
05c07e30f6
  1. 3
      rats.py

3
rats.py

@ -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()

Loading…
Cancel
Save