Changed stomp effect
This commit is contained in:
parent
a149933b28
commit
a7bbf99399
@ -54,6 +54,8 @@ class Ennemy(Movable):
|
||||
else:
|
||||
direction = -1
|
||||
self.player.verspd = self.player.gravity/3*direction
|
||||
if not self.player.fastfall:
|
||||
self.player.canfastfall = True
|
||||
self.player.upcombo()
|
||||
elif self.respawn:
|
||||
|
||||
|
@ -138,7 +138,8 @@ class Player(Movable):
|
||||
if self.fastfall:
|
||||
self.fastfall = 0
|
||||
# Spawns dust
|
||||
self.game.addParticle(self.dustparticles,self.rect.center[0],self.rect.center[1]+self.rect[3]/2*self.gravityway,fps=25)
|
||||
self.game.addParticle(self.dustparticles,self.rect.right+4,self.rect.center[1]+self.rect[3]/2*self.gravityway,fps=25)
|
||||
self.game.addParticle(self.dustparticles,self.rect.left-4,self.rect.center[1]+self.rect[3]/2*self.gravityway,fps=25)
|
||||
if self.verspd!=0:
|
||||
self.sprite=self.spritelanding
|
||||
self.landingtimer = self.maxlandtime
|
||||
|
Loading…
Reference in New Issue
Block a user