From 3e4663a26d0efc5ee3d16f17d6f4f97183693a58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Fri, 8 Apr 2022 15:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=A8=E7=94=BB=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/component/plant.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/component/plant.py b/source/component/plant.py index 5cec652..b815779 100755 --- a/source/component/plant.py +++ b/source/component/plant.py @@ -127,7 +127,7 @@ class Plant(pg.sprite.Sprite): self.bullet_group = bullet_group self.can_sleep = False self.animate_timer = 0 - self.animate_interval = 100 + self.animate_interval = 70 # 帧播放间隔 self.hit_timer = 0 def loadFrames(self, frames, name, scale, color=c.BLACK): @@ -401,7 +401,7 @@ class CherryBomb(Plant): class Chomper(Plant): def __init__(self, x, y): Plant.__init__(self, x, y, c.CHOMPER, c.PLANT_HEALTH, None) - self.animate_interval = 250 + self.animate_interval = 140 self.digest_timer = 0 self.digest_interval = 15000 self.attack_zombie = None @@ -411,6 +411,7 @@ class Chomper(Plant): self.idle_frames = [] self.attack_frames = [] self.digest_frames = [] + self.animate_interval = 100 # 本身动画播放较慢 idle_name = name attack_name = name + 'Attack'