From fa58f317cc1791b276d7329e7c164196c0552514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Wed, 13 Apr 2022 19:57:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- source/state/level.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 36683f1..b2a1835 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ python main.py ## 方法 * 使用鼠标收集阳光,种植植物 -* 你可以通过更改`source/constants.py`中的`START_LEVEL_NUM`的数值来更改起始关卡: +* 你可以通过更改`source/constants.py`中的`START_LEVEL_NUM`的数值来更改冒险模式的起始关卡,更改`START_LITTLE_GAME_NUM`的数值来更改小游戏的起始关卡: * 冒险模式: * 1 和 2:白昼模式 * 3:夜晚模式 diff --git a/source/state/level.py b/source/state/level.py index f379da7..8ce07b2 100644 --- a/source/state/level.py +++ b/source/state/level.py @@ -813,13 +813,12 @@ class Level(tool.State): x, y = pg.mouse.get_pos() self.shovel_rect.centerx = x self.shovel_rect.centery = y + # 铲子接近植物时会高亮提示 map_x, map_y = self.map.getMapIndex(x, y) for i in self.plant_groups[map_y]: if (x >= i.rect.x and x <= i.rect.right and y >= i.rect.y and y <= i.rect.bottom): i.highlightTime = self.current_time - else: - i.highlight = False surface.blit(self.shovel, self.shovel_rect) def drawZombieFreezeTrap(self, i, surface):