From 72d638d163fb34608d2a454499c54c4c96fe55de Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 27 Jul 2019 23:52:15 +0200 Subject: [PATCH] improvement(player): some physics adjusting --- .../game/modules/world/actors/player.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sonic-radiance.love/game/modules/world/actors/player.lua b/sonic-radiance.love/game/modules/world/actors/player.lua index f4d2e71..9cfd119 100644 --- a/sonic-radiance.love/game/modules/world/actors/player.lua +++ b/sonic-radiance.love/game/modules/world/actors/player.lua @@ -4,7 +4,7 @@ local Player = Parent:extend() function Player:new(world, x, y, z, id) Player.super.new(self, world, "player", x, y, 0, 16, 12, 24, true) - self:setGravity(480) + self:setGravity(480*2) self:setSprite("sonic", 8, 10) self:cloneSprite() @@ -18,20 +18,20 @@ function Player:updateStart(dt) self.xfrc, self.yfrc = 480*3, 480*3 if self.keys["up"].isDown then - self.ysp = -120 + self.ysp = -160 end if self.keys["down"].isDown then - self.ysp = 120 + self.ysp = 160 end if self.keys["left"].isDown then - self.xsp = -120 + self.xsp = -160 end if self.keys["right"].isDown then - self.xsp = 120 + self.xsp = 160 end if self.keys["A"].isDown and (self.onGround) then - self.zsp = 280 + self.zsp = 280*1.33 end end