diff options
Diffstat (limited to 'player.lua')
| -rw-r--r-- | player.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,13 +6,13 @@ Player.__index = Player setmetatable(Player, { __index = Entity }) local MOVE_SPEED = 65 -local SWIM_SPEED = 15 +local SWIM_SPEED = 100 local JUMP_FORCE = -200 local GROUND_LAYER = "ground" function Player.new(world, spawnX, spawnY) local w, h = 16, 16 - local pw, ph = 8, 8 -- physics body size + local pw, ph = 16, 16 -- physics body size local self = setmetatable(Entity:new(spawnX or 0, spawnY or 0, w, h, pw, ph), Player) self.directionState = { 'side', 'up', 'down', 'side_up', 'side_down' } @@ -209,7 +209,7 @@ function Player:jump() return false end - local maxJumps = self.doubleJump and 2 or 1 + local maxJumps = self.doubleJump and 1 or 0 if self.jumpsUsed >= maxJumps then return false |
