Changed stomp effect

This commit is contained in:
theo@manjaro 2021-11-18 09:16:03 +01:00
parent a149933b28
commit a7bbf99399
2 changed files with 4 additions and 1 deletions

View File

@ -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:

View File

@ -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