From ee50c004b326d93ba61507397a47a59be37b00b7 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, 11 May 2022 15:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 1 + source/constants.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/source/component/plant.py b/source/component/plant.py index 8606d82..77ee250 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -1432,6 +1432,7 @@ class TangleKlep(Plant): def canAttack(self, zombie): if zombie.state != c.DIE and (not zombie.lostHead): + # 这里碰撞应当比碰撞一般更容易,就设置成圆形或矩形模式,不宜采用mask if pg.sprite.collide_circle_ratio(0.7)(zombie, self): return True return False diff --git a/source/constants.py b/source/constants.py index a55ef44..f12c384 100755 --- a/source/constants.py +++ b/source/constants.py @@ -166,7 +166,7 @@ PANEL_Y_INTERNAL = 73 PANEL_X_INTERNAL = 53 BAR_CARD_X_INTERNAL = 51 CARD_MAX_NUM = 10 # 这里以后可以增加解锁功能,从最初的6格逐渐解锁到10格 -CARD_LIST_NUM = 0#CARD_MAX_NUM +CARD_LIST_NUM = CARD_MAX_NUM # 所选植物信息索引 PLANT_NAME_INDEX = 0