From 6f160bac033726c9bddecee42f24616ee537c4be Mon Sep 17 00:00:00 2001 From: cursed22bc Date: Mon, 9 Mar 2026 23:48:43 +0200 Subject: hacking layering --- player.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'player.lua') 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 -- cgit v1.2.3