Skip to content

Commit

Permalink
Fix for mx0c#94
Browse files Browse the repository at this point in the history
  • Loading branch information
DKNorad committed Apr 18, 2024
1 parent c1b8757 commit 1db6260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion entities/Koopa.py
Expand Up @@ -51,7 +51,7 @@ def drawKoopa(self, camera):
)

def shellBouncing(self, camera):
self.leftrightTrait.speed = 4
self.leftrightTrait.speed = 6
self.applyGravity()
self.animation.image = self.spriteCollection.get("koopa-hiding").image
self.drawKoopa(camera)
Expand Down
3 changes: 2 additions & 1 deletion entities/Mario.py
Expand Up @@ -121,8 +121,8 @@ def _onCollisionWithMob(self, mob, collisionState):
mob.rect.x += -5
self.sound.play_sfx(self.sound.kick)
else:
mob.rect.x += 5
mob.leftrightTrait.direction = 1
mob.rect.x += 5
self.sound.play_sfx(self.sound.kick)
elif collisionState.isColliding and mob.alive and not self.invincibilityFrames:
if self.powerUpState == 0:
Expand All @@ -131,6 +131,7 @@ def _onCollisionWithMob(self, mob, collisionState):
self.powerUpState = 0
self.traits['goTrait'].updateAnimation(smallAnimation)
x, y = self.rect.x, self.rect.y

self.rect = pygame.Rect(x, y + 32, 32, 32)
self.invincibilityFrames = 60
self.sound.play_sfx(self.sound.pipe)
Expand Down

0 comments on commit 1db6260

Please sign in to comment.