说明更新
This commit is contained in:
parent
567541beae
commit
fa58f317cc
@ -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:夜晚模式
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user