summaryrefslogtreecommitdiff
path: root/player.lua
diff options
context:
space:
mode:
authorcursed22bc <admin@pixeldawn.org>2026-03-09 23:48:43 +0200
committercursed22bc <admin@pixeldawn.org>2026-03-09 23:48:43 +0200
commit6f160bac033726c9bddecee42f24616ee537c4be (patch)
treecff0cbdb52847add84c2a09e2985b259e1cbed90 /player.lua
parentfa90ee5c494ef7db5c779fe7eec33d6312237f9b (diff)
hacking layering
Diffstat (limited to 'player.lua')
-rw-r--r--player.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/player.lua b/player.lua
index 81e56bc..de02625 100644
--- a/player.lua
+++ b/player.lua
@@ -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