From 14bd90bf75a6093f3dbb9129b194b12a81849e8d Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 27 Jan 2021 23:36:09 +0800 Subject: [PATCH] =?UTF-8?q?das=E7=B3=BB=E7=BB=9F=E5=BE=AE=E8=B0=83?= =?UTF-8?q?=EF=BC=8C=E6=8C=89=E5=8F=8D=E6=96=B9=E5=90=91=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=BD=BB=E5=BA=95=E5=88=87=E6=96=AD=E5=8E=9F?= =?UTF-8?q?=E6=96=B9=E5=90=91=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/update.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/parts/player/update.lua b/parts/player/update.lua index 408de941..b71c88f7 100644 --- a/parts/player/update.lua +++ b/parts/player/update.lua @@ -222,6 +222,12 @@ local function update_alive(P,dt) mov=mov+1 end P.moving=mov + elseif P.keyPressing[1]then + P.movDir=-1 + P.moving=0 + elseif P.keyPressing[2]then + P.movDir=1 + P.moving=0 end --Drop pressed