diff options
| author | cursed22bc <admin@pixeldawn.org> | 2026-03-09 23:48:43 +0200 |
|---|---|---|
| committer | cursed22bc <admin@pixeldawn.org> | 2026-03-09 23:48:43 +0200 |
| commit | 6f160bac033726c9bddecee42f24616ee537c4be (patch) | |
| tree | cff0cbdb52847add84c2a09e2985b259e1cbed90 /player.lua | |
| parent | fa90ee5c494ef7db5c779fe7eec33d6312237f9b (diff) | |
hacking layering
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 |
