修改掉头僵尸动画

This commit is contained in:
星外之神 2022-05-11 00:42:22 +08:00
parent 319610008e
commit 109265655b

View File

@ -248,7 +248,6 @@ class Zombie(pg.sprite.Sprite):
def setLostHead(self): def setLostHead(self):
self.losthead_timer = self.current_time self.losthead_timer = self.current_time
self.lostHead = True self.lostHead = True
self.speed = 0.5
self.animate_interval = self.lostHead_animate_interval self.animate_interval = self.lostHead_animate_interval
if self.head_group is not None: if self.head_group is not None:
self.head_group.add(ZombieHead(self.rect.centerx, self.rect.bottom)) self.head_group.add(ZombieHead(self.rect.centerx, self.rect.bottom))