Fix an edge case in snappy controls
This commit is contained in:
parent
87219678ef
commit
37283c146d
@ -661,13 +661,13 @@ function player:update()
|
||||
wrongbleep:bleep()
|
||||
end
|
||||
if btncd(0) then
|
||||
try_move(-1,0,{{orientx=-1,orienty=0,px=-2},{px=1}})
|
||||
try_move(-1,0,{{orientx=-1,orienty=0,px=-2,py=0},{px=1}})
|
||||
elseif btncd(1) then
|
||||
try_move(1,0,{{orientx=1,orienty=0,px=2},{px=-1}})
|
||||
try_move(1,0,{{orientx=1,orienty=0,px=2,py=0},{px=-1}})
|
||||
elseif btncd(2) then
|
||||
try_move(0,-1,{{orienty=-1,py=-2},{py=1}})
|
||||
try_move(0,-1,{{orienty=-1,px=0,py=-2},{py=1}})
|
||||
elseif btncd(3) then
|
||||
try_move(0,1,{{orienty=1,py=2},{py=-1}})
|
||||
try_move(0,1,{{orienty=1,px=0,py=2},{py=-1}})
|
||||
elseif not self.rope and kbd:btnr(4) then
|
||||
local dx,dy=self.orientx,self.orienty
|
||||
if (dy!=0) dx=0
|
||||
|
Loading…
Reference in New Issue
Block a user