From 169bef4baafcd26e1cb8bc77e616e6c92a6e5482 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, 27 Apr 2022 12:54:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9D=A8=E6=A1=83=E5=AD=90?= =?UTF-8?q?=E5=BC=B9=E7=A9=BF=E8=BF=87=E7=81=AB=E7=82=AC=E6=A0=91=E6=97=B6?= =?UTF-8?q?=E9=97=AA=E9=80=80=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- source/component/plant.py | 1 + source/component/zombie.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bc1d1f2..3a5ac38 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ **本项目为个人python语言学习的练习项目,仅供个人学习和研究使用,不得用于其他用途。如果这个游戏侵犯了版权,请联系我删除** * 已有的植物:向日葵,豌豆射手,坚果墙,寒冰射手,樱桃炸弹,三线射手,大嘴花,小喷菇,土豆雷,地刺,胆小菇,倭瓜,火爆辣椒,阳光菇,寒冰菇,魅惑菇,火炬树桩,睡莲,杨桃 -* 已有的僵尸:普通僵尸,旗帜僵尸,路障僵尸,铁桶僵尸,读报僵尸 +* 已有的僵尸:普通僵尸,旗帜僵尸,路障僵尸,铁桶僵尸,读报僵尸,橄榄球僵尸 * 使用 JSON 格式的文件存储进度数据 (例如僵尸出现的位置和时间,背景信息) * 支持选择植物卡片 * 支持白昼模式,夜晚模式,泳池模式(暂不完善),传送带模式和坚果保龄球模式 diff --git a/source/component/plant.py b/source/component/plant.py index 322b598..a4ee7ab 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -129,6 +129,7 @@ class StarBullet(Bullet): self.damage = damage self.state = c.FLY self.current_time = 0 + self.passedTorchWood = None def loadFrames(self, frames, name): frame_list = tool.GFX[name] diff --git a/source/component/zombie.py b/source/component/zombie.py index c310a02..f55d837 100755 --- a/source/component/zombie.py +++ b/source/component/zombie.py @@ -542,7 +542,7 @@ class FootballZombie(Zombie): self.speed = 1.88 self.animate_interval = 50 self.walk_animate_interval = 50 - self.attack_animate_interval = 50 + self.attack_animate_interval = 60 self.lostHead_animate_interval = 50 self.die_animate_interval = 50