From 66d1aae6b95f4166b3b37575d7e3af6a58f3a50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Mon, 2 May 2022 22:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=83=A8=E5=88=86=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/state/level.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/state/level.py b/source/state/level.py index c1331ee..7da3a8a 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -40,12 +40,11 @@ class Level(tool.State): file_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))),'resources' , 'data', 'map', map_file) # 最后一关之后应该结束了 try: - print(self.game_info[c.LEVEL_NUM]) f = open(file_path) self.map_data = json.load(f) f.close() except Exception as e: - print("游戏结束") + print("game over") if self.mode == c.MODE_ADVENTURE: self.game_info[c.LEVEL_NUM] = c.START_LEVEL_NUM elif self.mode == c.MODE_LITTLEGAME: @@ -738,7 +737,6 @@ class Level(tool.State): if self.bar_type != c.CHOSSEBAR_BOWLING: self.map.addMapPlant(map_x, map_y, self.plant_name, sleep=mushroomSleep) self.removeMouseImage() - #print('addPlant map[%d,%d], grid pos[%d, %d] pos[%d, %d]' % (map_x, map_y, x, y, pos[0], pos[1])) def setupHintImage(self): pos = self.canSeedPlant(self.plant_name) @@ -1072,7 +1070,6 @@ class Level(tool.State): self.game_info[c.LITTLEGAME_NUM] += 1 else: self.game_info[c.LEVEL_NUM] += 1 - print(self.game_info[c.LEVEL_NUM]) self.next = c.GAME_VICTORY self.done = True elif self.checkLose():