修改掉头僵尸动画
This commit is contained in:
parent
319610008e
commit
109265655b
@ -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))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user