自定义游戏可预览场地,显示序列/任务情况
This commit is contained in:
@@ -177,6 +177,7 @@ local langList={
|
|||||||
title="音乐室",
|
title="音乐室",
|
||||||
arrow="→",
|
arrow="→",
|
||||||
now="正在播放:",
|
now="正在播放:",
|
||||||
|
|
||||||
bgm="BGM",
|
bgm="BGM",
|
||||||
up="↑",
|
up="↑",
|
||||||
play="播放",
|
play="播放",
|
||||||
@@ -186,6 +187,8 @@ local langList={
|
|||||||
customGame={
|
customGame={
|
||||||
title="自定义游戏",
|
title="自定义游戏",
|
||||||
subTitle="基本",
|
subTitle="基本",
|
||||||
|
defSeq="默认序列",
|
||||||
|
noMsn="无任务",
|
||||||
|
|
||||||
drop="下落延迟",
|
drop="下落延迟",
|
||||||
lock="锁定延迟",
|
lock="锁定延迟",
|
||||||
@@ -195,8 +198,8 @@ local langList={
|
|||||||
bg="背景",
|
bg="背景",
|
||||||
bgm="音乐",
|
bgm="音乐",
|
||||||
|
|
||||||
copy="复制序列+场地+任务",
|
copy="复制场地+序列+任务",
|
||||||
paste="粘贴序列+场地+任务",
|
paste="粘贴场地+序列+任务",
|
||||||
clear="开始-消除",
|
clear="开始-消除",
|
||||||
puzzle="开始-拼图",
|
puzzle="开始-拼图",
|
||||||
|
|
||||||
@@ -764,6 +767,8 @@ local langList={
|
|||||||
customGame={
|
customGame={
|
||||||
title="自定义游戏",
|
title="自定义游戏",
|
||||||
subTitle="基本",
|
subTitle="基本",
|
||||||
|
defSeq="默认序列",
|
||||||
|
noMsn="无任务",
|
||||||
|
|
||||||
drop="下落延迟",
|
drop="下落延迟",
|
||||||
lock="锁定延迟",
|
lock="锁定延迟",
|
||||||
@@ -773,8 +778,8 @@ local langList={
|
|||||||
bg="背景",
|
bg="背景",
|
||||||
bgm="音乐",
|
bgm="音乐",
|
||||||
|
|
||||||
copy="复制序列+场地+任务",
|
copy="复制场地+序列+任务",
|
||||||
paste="粘贴序列+场地+任务",
|
paste="粘贴场地+序列+任务",
|
||||||
clear="开始-消除",
|
clear="开始-消除",
|
||||||
puzzle="开始-拼图",
|
puzzle="开始-拼图",
|
||||||
|
|
||||||
@@ -1343,6 +1348,8 @@ local langList={
|
|||||||
customGame={
|
customGame={
|
||||||
title="Custom Game",
|
title="Custom Game",
|
||||||
subTitle="Basic",
|
subTitle="Basic",
|
||||||
|
defSeq="Default Seq.",
|
||||||
|
noMsn="No mission",
|
||||||
|
|
||||||
drop="Drop Delay",
|
drop="Drop Delay",
|
||||||
lock="Lock Delay",
|
lock="Lock Delay",
|
||||||
@@ -1352,15 +1359,15 @@ local langList={
|
|||||||
bg="Background",
|
bg="Background",
|
||||||
bgm="Music",
|
bgm="Music",
|
||||||
|
|
||||||
copy="Copy Seq+Field+Misn",
|
copy="Copy Field+Seq+Misn",
|
||||||
paste="Paste Seq+Field+Misn",
|
paste="Paste Field+Seq+Misn",
|
||||||
clear="Start-Clear",
|
clear="Start-Clear",
|
||||||
puzzle="Start-Puzzle",
|
puzzle="Start-Puzzle",
|
||||||
|
|
||||||
advance="More (A)",
|
advance="More (A)",
|
||||||
field="EditField (F)",
|
field="Edit Field (F)",
|
||||||
sequence="EditSequence (S)",
|
sequence="Edit Sequence (S)",
|
||||||
mission="EditMission (M)",
|
mission="Edit Mission (M)",
|
||||||
|
|
||||||
back="Back",
|
back="Back",
|
||||||
},
|
},
|
||||||
@@ -1919,10 +1926,11 @@ local langList={
|
|||||||
down="↓",
|
down="↓",
|
||||||
back="X",
|
back="X",
|
||||||
},
|
},
|
||||||
|
|
||||||
customGame={
|
customGame={
|
||||||
title="!@#$%^&*",
|
title="!@#$%^&*",
|
||||||
subTitle="!!",
|
subTitle="!!",
|
||||||
|
defSeq="0-[123]",
|
||||||
|
noMsn="-x-",
|
||||||
|
|
||||||
drop="↓",
|
drop="↓",
|
||||||
lock="↓_",
|
lock="↓_",
|
||||||
@@ -1932,15 +1940,15 @@ local langList={
|
|||||||
bg="{~}",
|
bg="{~}",
|
||||||
bgm="(~)",
|
bgm="(~)",
|
||||||
|
|
||||||
copy="Copy Seq+Field+Misn",
|
copy="Copy Field+Seq+Misn",
|
||||||
paste="Paste Seq+Field+Misn",
|
paste="Paste Field+Seq+Misn",
|
||||||
clear="Start-Clear",
|
clear="Start-Clear",
|
||||||
puzzle="Start-Puzzle",
|
puzzle="Start-Puzzle",
|
||||||
|
|
||||||
advance="More (A)",
|
advance="More (A)",
|
||||||
field="EditField (F)",
|
field="Edit Field (F)",
|
||||||
sequence="EditSequence (S)",
|
sequence="Edit Sequence (S)",
|
||||||
mission="EditMission (M)",
|
mission="Edit Mission (M)",
|
||||||
|
|
||||||
back="X",
|
back="X",
|
||||||
},
|
},
|
||||||
@@ -2502,6 +2510,8 @@ local langList={
|
|||||||
customGame={
|
customGame={
|
||||||
title="自定义游戏",
|
title="自定义游戏",
|
||||||
subTitle="基本",
|
subTitle="基本",
|
||||||
|
defSeq="默认序列",
|
||||||
|
noMsn="无任务",
|
||||||
|
|
||||||
drop="下落延迟",
|
drop="下落延迟",
|
||||||
lock="锁定延迟",
|
lock="锁定延迟",
|
||||||
@@ -2511,8 +2521,8 @@ local langList={
|
|||||||
bg="背景",
|
bg="背景",
|
||||||
bgm="音乐",
|
bgm="音乐",
|
||||||
|
|
||||||
copy="复制序列+场地+任务",
|
copy="复制场地+序列+任务",
|
||||||
paste="粘贴序列+场地+任务",
|
paste="粘贴场地+序列+任务",
|
||||||
clear="开始-消除",
|
clear="开始-消除",
|
||||||
puzzle="开始-拼图",
|
puzzle="开始-拼图",
|
||||||
|
|
||||||
|
|||||||
@@ -181,12 +181,14 @@ local Widgets={
|
|||||||
customGame={
|
customGame={
|
||||||
newText({name="title", x=600,y=5,font=80,align="R"}),
|
newText({name="title", x=600,y=5,font=80,align="R"}),
|
||||||
newText({name="subTitle", x=610,y=50,font=35,align="L",color="grey"}),
|
newText({name="subTitle", x=610,y=50,font=35,align="L",color="grey"}),
|
||||||
|
newText({name="defSeq", x=450,y=550,color="grey",hide=function()return preBag[1]end}),
|
||||||
|
newText({name="noMsn", x=730,y=550,color="grey",hide=function()return preMission[1]end}),
|
||||||
|
|
||||||
--Basic
|
--Basic
|
||||||
newSelector({name="drop", x=160, y=150,w=220,color="orange", list=CUSlist.drop, disp=CUSval("drop"),code=CUSsto("drop")}),
|
newSelector({name="drop", x=170, y=150,w=220,color="orange", list=CUSlist.drop, disp=CUSval("drop"),code=CUSsto("drop")}),
|
||||||
newSelector({name="lock", x=160, y=230,w=220,color="red", list=CUSlist.lock, disp=CUSval("lock"),code=CUSsto("lock")}),
|
newSelector({name="lock", x=170, y=230,w=220,color="red", list=CUSlist.lock, disp=CUSval("lock"),code=CUSsto("lock")}),
|
||||||
newSelector({name="wait", x=400, y=150,w=220,color="green", list=CUSlist.wait, disp=CUSval("wait"),code=CUSsto("wait")}),
|
newSelector({name="wait", x=410, y=150,w=220,color="green", list=CUSlist.wait, disp=CUSval("wait"),code=CUSsto("wait")}),
|
||||||
newSelector({name="fall", x=400, y=230,w=220,color="yellow", list=CUSlist.fall, disp=CUSval("fall"),code=CUSsto("fall")}),
|
newSelector({name="fall", x=410, y=230,w=220,color="yellow", list=CUSlist.fall, disp=CUSval("fall"),code=CUSsto("fall")}),
|
||||||
|
|
||||||
--Else
|
--Else
|
||||||
newSelector({name="bg", x=1070, y=150,w=250,color="yellow", list=CUSlist.bg, disp=CUSval("bg"), code=function(i)customEnv.bg=i BG.set(i)end}),
|
newSelector({name="bg", x=1070, y=150,w=250,color="yellow", list=CUSlist.bg, disp=CUSval("bg"), code=function(i)customEnv.bg=i BG.set(i)end}),
|
||||||
@@ -402,7 +404,7 @@ local Widgets={
|
|||||||
newButton({name="back", x=1140, y=640, w=170,h=80, font=40,code=BACK}),
|
newButton({name="back", x=1140, y=640, w=170,h=80, font=40,code=BACK}),
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
newText({name="title",x=640,y=15,font=80}),
|
newText({name="title", x=640,y=15,font=80}),
|
||||||
|
|
||||||
newButton({name="sound", x=200, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene("setting_sound","swipeR")}),
|
newButton({name="sound", x=200, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene("setting_sound","swipeR")}),
|
||||||
newButton({name="game", x=1080, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene("setting_game","swipeL")}),
|
newButton({name="game", x=1080, y=80,w=240,h=80,color="lCyan",font=35,code=swapScene("setting_game","swipeL")}),
|
||||||
@@ -487,10 +489,10 @@ local Widgets={
|
|||||||
newButton({name="back", x=1140, y=640,w=170,h=80,font=40,code=BACK}),
|
newButton({name="back", x=1140, y=640,w=170,h=80,font=40,code=BACK}),
|
||||||
},
|
},
|
||||||
setting_key={
|
setting_key={
|
||||||
newText({name="keyboard", x=340,y=30,color="lRed",font=25}),
|
newText({name="keyboard", x=340,y=30,font=25,color="lRed"}),
|
||||||
newText({name="keyboard", x=940,y=30,color="lRed",font=25}),
|
newText({name="keyboard", x=940,y=30,font=25,color="lRed"}),
|
||||||
newText({name="joystick", x=540,y=30,color="lBlue",font=25}),
|
newText({name="joystick", x=540,y=30,font=25,color="lBlue"}),
|
||||||
newText({name="joystick", x=1140,y=30,color="lBlue",font=25}),
|
newText({name="joystick", x=1140,y=30,font=25,color="lBlue"}),
|
||||||
newText({name="help", x=50,y=650,font=30,align="L"}),
|
newText({name="help", x=50,y=650,font=30,align="L"}),
|
||||||
newButton({name="back", x=1140,y=640,w=170,h=80,font=40,code=BACK}),
|
newButton({name="back", x=1140,y=640,w=170,h=80,font=40,code=BACK}),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1470,6 +1470,43 @@ do--customGame
|
|||||||
WIDGET.keyPressed(key)
|
WIDGET.keyPressed(key)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local preField=preField
|
||||||
|
function Pnt.customGame()
|
||||||
|
--Field
|
||||||
|
gc.push("transform")
|
||||||
|
gc.translate(95,290)
|
||||||
|
gc.scale(.5)
|
||||||
|
gc.setColor(1,1,1)
|
||||||
|
gc.setLineWidth(3)
|
||||||
|
gc.rectangle("line",-2,-2,304,604)
|
||||||
|
local cross=puzzleMark[-1]
|
||||||
|
for y=1,20 do for x=1,10 do
|
||||||
|
local B=preField[y][x]
|
||||||
|
if B>0 then
|
||||||
|
gc.draw(blockSkin[B],30*x-30,600-30*y)
|
||||||
|
elseif B==-1 then
|
||||||
|
gc.draw(cross,30*x-30,600-30*y)
|
||||||
|
end
|
||||||
|
end end
|
||||||
|
gc.pop()
|
||||||
|
|
||||||
|
--Sequence
|
||||||
|
if #preBag>0 then
|
||||||
|
setFont(40)
|
||||||
|
gc.setColor(1,1,int(Timer()*3)%2)
|
||||||
|
gc.print("#",365,545)
|
||||||
|
gc.print(#preBag,390,545)
|
||||||
|
end
|
||||||
|
|
||||||
|
--Sequence
|
||||||
|
if #preMission>0 then
|
||||||
|
setFont(40)
|
||||||
|
gc.setColor(1,1,int(Timer()*3)%2)
|
||||||
|
gc.print("#",645,545)
|
||||||
|
gc.print(#preMission,670,545)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
do--custom_advance
|
do--custom_advance
|
||||||
function sceneInit.custom_advance()
|
function sceneInit.custom_advance()
|
||||||
@@ -1656,6 +1693,7 @@ do--custom_field
|
|||||||
a=12,s=13,d=14,f=15,g=16,h=17,
|
a=12,s=13,d=14,f=15,g=16,h=17,
|
||||||
z=0,x=-1,
|
z=0,x=-1,
|
||||||
}
|
}
|
||||||
|
local preField=preField
|
||||||
function mouseDown.custom_field(x,y,k)
|
function mouseDown.custom_field(x,y,k)
|
||||||
mouseMove.custom_field(x,y)
|
mouseMove.custom_field(x,y)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user