From 5cb1a13327d8603e8438dfd84b21f78e24c1fb54 Mon Sep 17 00:00:00 2001 From: s464859 <@> Date: Sat, 16 Apr 2022 20:16:41 +0200 Subject: [PATCH] trawa3 --- classes/minesweeper.py | 2 ++ main.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/minesweeper.py b/classes/minesweeper.py index 3cd145a..4c6ba9e 100644 --- a/classes/minesweeper.py +++ b/classes/minesweeper.py @@ -389,6 +389,8 @@ class Minesweeper: sensor_list[i][j]="wall" elif self.current_map.terrain_matrix[posy][posx]>9: sensor_list[i][j]="wall" + elif self.current_map.terrain_matrix[posy][posx]>4: + sensor_list[i][j]="grass" else: sensor_list[i][j]="sand" for cliff in self.current_map.cliffs: diff --git a/main.py b/main.py index 00ffb7c..4fd4b49 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ TILES_X = int(12) TILES_Y = int(10) # wł/wył muzyki -MUSIC = True +MUSIC = False # ustalenie FPS FPS = 60