diff --git a/wicked_quest.py b/wicked_quest.py index 91a4452..b987606 100644 --- a/wicked_quest.py +++ b/wicked_quest.py @@ -45,9 +45,15 @@ class WickedQuest: player.xPos += currentSpeed player.facingRight = True + if keys[pygame.K_c]: + speak(f"{player.get_coins()} coins") + if keys[pygame.K_h]: speak(f"{player.get_health()} HP") + if keys[pygame.K_l]: + speak(f"{player.get_lives()} lives") + if keys[pygame.K_f]: # Throw projectile self.currentLevel.throw_projectile() @@ -71,6 +77,7 @@ class WickedQuest: # Check if jump should end if player.isJumping and currentTime - player.jumpStartTime >= player.jumpDuration: player.isJumping = False + self.sounds['footstep'].play() # Reset step distance tracking after landing player.distanceSinceLastStep = 0