Added shift as an alternative run key.
This commit is contained in:
@@ -16,7 +16,7 @@ d or right arrow: move right
|
|||||||
w or up arrow: jump
|
w or up arrow: jump
|
||||||
s or down arrow: duck
|
s or down arrow: duck
|
||||||
Control: attack
|
Control: attack
|
||||||
Space: hold to run.
|
Space or shift: hold to run.
|
||||||
f or alt: throw jack O'lantern
|
f or alt: throw jack O'lantern
|
||||||
c: check bone dust
|
c: check bone dust
|
||||||
e: Check currently wielded weapon.
|
e: Check currently wielded weapon.
|
||||||
|
@@ -71,7 +71,7 @@ class WickedQuest:
|
|||||||
elif (not keys[pygame.K_s] and not keys[pygame.K_DOWN]) and player.isDucking:
|
elif (not keys[pygame.K_s] and not keys[pygame.K_DOWN]) and player.isDucking:
|
||||||
player.stand()
|
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)
|
# Get current speed (handles both running and jumping)
|
||||||
currentSpeed = player.get_current_speed()
|
currentSpeed = player.get_current_speed()
|
||||||
|
Reference in New Issue
Block a user