修复自定义序列/任务删除后光标穿模
This commit is contained in:
@@ -688,8 +688,6 @@ do--pong
|
|||||||
function touchMove.pong(id,x,y,dx,dy)
|
function touchMove.pong(id,x,y,dx,dy)
|
||||||
sceneTemp[x<640 and"p1"or"p2"].y0=y
|
sceneTemp[x<640 and"p1"or"p2"].y0=y
|
||||||
end
|
end
|
||||||
|
|
||||||
--DEBUGGING
|
|
||||||
function mouseMove.pong(x,y)
|
function mouseMove.pong(x,y)
|
||||||
sceneTemp[x<640 and"p1"or"p2"].y0=y
|
sceneTemp[x<640 and"p1"or"p2"].y0=y
|
||||||
end
|
end
|
||||||
@@ -759,7 +757,7 @@ do--pong
|
|||||||
end
|
end
|
||||||
elseif S.state==2 then--Game over
|
elseif S.state==2 then--Game over
|
||||||
if x<-120 or x>1400 or y<-40 or y>760 then
|
if x<-120 or x>1400 or y<-40 or y>760 then
|
||||||
local P=x>640 and S.p1 or S.p2
|
P=x>640 and S.p1 or S.p2
|
||||||
P.score=P.score+1
|
P.score=P.score+1
|
||||||
TEXT.show("+1",x>1400 and 470 or 810,226,50,"score")
|
TEXT.show("+1",x>1400 and 470 or 810,226,50,"score")
|
||||||
SFX.play("reach")
|
SFX.play("reach")
|
||||||
@@ -1578,6 +1576,9 @@ do--custom_seq
|
|||||||
if S.cur>0 then
|
if S.cur>0 then
|
||||||
rem(preBag,S.cur)
|
rem(preBag,S.cur)
|
||||||
S.cur=S.cur-1
|
S.cur=S.cur-1
|
||||||
|
if S.cur>0 and preBag[S.cur]==preBag[S.cur+1]then
|
||||||
|
keyDown.custom_mission("right")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif key=="delete"then
|
elseif key=="delete"then
|
||||||
if S.sure>20 then
|
if S.sure>20 then
|
||||||
@@ -1930,6 +1931,9 @@ do--custom_mission
|
|||||||
if S.cur>0 then
|
if S.cur>0 then
|
||||||
rem(preMission,S.cur)
|
rem(preMission,S.cur)
|
||||||
S.cur=S.cur-1
|
S.cur=S.cur-1
|
||||||
|
if S.cur>0 and preMission[S.cur]==preMission[S.cur+1]then
|
||||||
|
keyDown.custom_mission("right")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
elseif key=="delete"then
|
elseif key=="delete"then
|
||||||
if S.sure>20 then
|
if S.sure>20 then
|
||||||
@@ -3301,7 +3305,7 @@ do--staff
|
|||||||
|
|
||||||
function Tmr.staff(dt)
|
function Tmr.staff(dt)
|
||||||
local S=sceneTemp
|
local S=sceneTemp
|
||||||
if kb.isDown("space","return")and S.v<6.26 then
|
if(kb.isDown("space","return")or tc.getTouches()[1])and S.v<6.26 then
|
||||||
S.v=S.v+.26
|
S.v=S.v+.26
|
||||||
elseif S.v>1 then
|
elseif S.v>1 then
|
||||||
S.v=S.v-.26
|
S.v=S.v-.26
|
||||||
|
|||||||
Reference in New Issue
Block a user