diff --git a/entities/Koopa.py b/entities/Koopa.py index 5fed55eb..15303b50 100644 --- a/entities/Koopa.py +++ b/entities/Koopa.py @@ -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) diff --git a/entities/Mario.py b/entities/Mario.py index 2ac6a9b5..0ffbb790 100644 --- a/entities/Mario.py +++ b/entities/Mario.py @@ -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: @@ -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)