Springs don't reset combo
This commit is contained in:
parent
c3c45854bb
commit
1fc2e15a8f
@ -62,7 +62,7 @@ class Spring(Ennemy):
|
||||
self.longsfx.play()
|
||||
else:
|
||||
self.sfx.play()
|
||||
self.player.yeet(self.ratiox*force,self.ratioy*force)
|
||||
self.player.yeet(self.ratiox*force,self.ratioy*force,resetcombo=False)
|
||||
self.spriteindex = len(self.sprites)
|
||||
|
||||
self.spriteindex-=self.animspeed*self.game.dt
|
||||
|
@ -262,12 +262,13 @@ class Player(Movable):
|
||||
self.combo+=1
|
||||
self.combotimer = 1
|
||||
|
||||
def yeet(self,hor,ver):
|
||||
def yeet(self,hor,ver,resetcombo=True):
|
||||
self.verspd = 0
|
||||
self.combo = 0
|
||||
self.horkb = hor
|
||||
self.verkb = ver
|
||||
self.canfastfall = True
|
||||
if resetcombo:
|
||||
self.combo = 0
|
||||
|
||||
def draw(self):
|
||||
flipy = (self.gravityway<0 and not self.leaptimer<0)
|
||||
|
Loading…
Reference in New Issue
Block a user