Aggiungi la classe Point e implementa la gestione delle esplosioni nel gioco
This commit is contained in:
+4
-1
@@ -6,4 +6,7 @@ class Map:
|
||||
with open(maze_file, 'r') as file:
|
||||
self.matrix = json.load(file)
|
||||
self.height = len(self.matrix)
|
||||
self.width = len(self.matrix[0])
|
||||
self.width = len(self.matrix[0])
|
||||
|
||||
def is_wall(self, x, y):
|
||||
return self.matrix[y][x]
|
||||
Reference in New Issue
Block a user