Skip to content

Commit

Permalink
Merge pull request #4 from romotty/playability
Browse files Browse the repository at this point in the history
playability : KEY_UP for alt jump
  • Loading branch information
britzl authored Aug 2, 2023
2 parents 74473a3 + f685089 commit 49c7254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/player.script
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ local function jump(self)
-- compress and stretch player for visual "juice"
squish()
-- allow double jump if still moving up
elseif not self.double_jump and self.velocity.y > 0 then
self.velocity.y = self.velocity.y + DOUBLEJUMP_TAKEOFF_SPEED
elseif not self.double_jump then
self.velocity.y = DOUBLEJUMP_TAKEOFF_SPEED
self.double_jump = true
end
-- add some particles
Expand Down
4 changes: 4 additions & 0 deletions input/game.input_binding
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ key_trigger {
input: KEY_SPACE
action: "jump"
}
key_trigger {
input: KEY_UP
action: "jump"
}
key_trigger {
input: KEY_X
action: "fire"
Expand Down

0 comments on commit 49c7254

Please sign in to comment.