das系统微调,按反方向移动不再彻底切断原方向键
This commit is contained in:
@@ -222,6 +222,12 @@ local function update_alive(P,dt)
|
|||||||
mov=mov+1
|
mov=mov+1
|
||||||
end
|
end
|
||||||
P.moving=mov
|
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
|
end
|
||||||
|
|
||||||
--Drop pressed
|
--Drop pressed
|
||||||
|
|||||||
Reference in New Issue
Block a user