Death animation for ennemies
This commit is contained in:
parent
d452a015da
commit
02e9a07c91
@ -28,7 +28,8 @@ class Ennemy(Movable):
|
||||
# Die
|
||||
self.dead = True
|
||||
# Add particles
|
||||
self.game.addParticle(self.dustparticles,self.rect.center[0],self.rect.center[1])
|
||||
self.game.addParticle(self.dustparticles,self.rect.center[0],self.rect.center[1]) # Dust
|
||||
self.game.addParticle([self.deadsprite],self.rect.center[0],self.rect.center[1],fps=0.6,vely=-1.5,modvely=0.15) # Die sprite
|
||||
# Boost the player vertically
|
||||
if not self.player.fastfall:
|
||||
if self.player.rect[1]>self.rect[1]:
|
||||
|
Loading…
Reference in New Issue
Block a user