From 9b08eaa1c2b230162ad075bf62957c66199214ba Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 15 Feb 2025 14:37:11 -0500 Subject: [PATCH] Added shift as an alternative run key. --- files/instructions.txt | 2 +- wicked_quest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/instructions.txt b/files/instructions.txt index e909cc0..d989286 100644 --- a/files/instructions.txt +++ b/files/instructions.txt @@ -16,7 +16,7 @@ d or right arrow: move right w or up arrow: jump s or down arrow: duck Control: attack -Space: hold to run. +Space or shift: hold to run. f or alt: throw jack O'lantern c: check bone dust e: Check currently wielded weapon. diff --git a/wicked_quest.py b/wicked_quest.py index 9193b47..9a93ae5 100644 --- a/wicked_quest.py +++ b/wicked_quest.py @@ -71,7 +71,7 @@ class WickedQuest: elif (not keys[pygame.K_s] and not keys[pygame.K_DOWN]) and player.isDucking: player.stand() - player.isRunning = keys[pygame.K_SPACE] + player.isRunning = keys[pygame.K_SPACE] or keys[pygame.K_LSHIFT] or keys[pygame.K_RSHIFT] # Get current speed (handles both running and jumping) currentSpeed = player.get_current_speed()