升级合到10小游戏,修改进入方法

This commit is contained in:
MrZ626
2021-02-10 20:08:59 +08:00
parent 1b5401bf7f
commit 160d852cd2
10 changed files with 21 additions and 27 deletions

View File

@@ -759,7 +759,7 @@ return{
{"Minigame", {"Minigame",
"minigame", "minigame",
"other", "other",
"Type the following codes in the search bar of this dictionary for some fun minigames!\n\n15-Puzzle: 15p\nSchulte Grid: sltg\nPong: pong\nAtoZ: atoz\nUltimate Tic-tac-toe: uttt\ncubefield: cbf\n2048: 2048\nGet the ten: gtt", "Type the following codes in the search bar of this dictionary for some fun minigames!\n\n15-Puzzle: 15p\nSchulte Grid: sltg\nPong: pong\nAtoZ: atoz\nUltimate Tic-tac-toe: uttt\ncubefield: cbf\n2048: 2048\nJust get ten: jgt",
}, },
--English --English

View File

@@ -765,7 +765,7 @@ return{
{"小游戏", {"小游戏",
"minigame xiaoyouxi", "minigame xiaoyouxi",
"other", "other",
"输入以下词语,小游戏免费玩!\n\n15-Puzzle: 15p\nSchulte Grid: sltg\nPong: pong\nAtoZ: atoz\nUltimate Tic-tac-toe: uttt\ncubefield: cbf\n2048: 2048\nGet the ten: gtt", "输入以下词语,小游戏免费玩!\n\n15-Puzzle: 15p\nSchulte Grid: sltg\nPong: pong\nAtoZ: atoz\nUltimate Tic-tac-toe: uttt\ncubefield: cbf\n2048: 2048\nJust get ten: jgt",
}, },
--英文 --英文

View File

@@ -639,7 +639,7 @@ return{
replay1="P", replay1="P",
replay2="P", replay2="P",
}, },
mg_get10={ mg_jgt={
reset="Reset", reset="Reset",
blind="Blind", blind="Blind",
}, },

View File

@@ -550,7 +550,7 @@ return{
-- tapControl="Tap control", -- tapControl="Tap control",
-- skip="Skip Round", -- skip="Skip Round",
}, },
mg_get10={ mg_jgt={
reset="Réinitialiser", reset="Réinitialiser",
blind="Aveugler", blind="Aveugler",
}, },

View File

@@ -635,7 +635,7 @@ return{
-- tapControl="Tap control", -- tapControl="Tap control",
-- skip="Skip Round", -- skip="Skip Round",
}, },
mg_get10={ mg_jgt={
reset="Resetar", reset="Resetar",
blind="Cego", blind="Cego",
}, },

View File

@@ -552,7 +552,7 @@ return{
-- tapControl="Tap control", -- tapControl="Tap control",
-- skip="Skip Round", -- skip="Skip Round",
}, },
mg_get10={ mg_jgt={
reset="Reiniciar", reset="Reiniciar",
blind="A ciegas", blind="A ciegas",
}, },

View File

@@ -483,7 +483,7 @@ return{
tapControl="_↓", tapControl="_↓",
skip=">>", skip=">>",
}, },
mg_get10={ mg_jgt={
reset="R", reset="R",
blind="???", blind="???",
}, },

View File

@@ -641,7 +641,7 @@ return{
replay1="P", replay1="P",
replay2="P", replay2="P",
}, },
mg_get10={ mg_jgt={
reset="重置", reset="重置",
blind="盲打", blind="盲打",
}, },

View File

@@ -45,8 +45,7 @@ local eggInput={
uttt=goScene"mg_UTTT", uttt=goScene"mg_UTTT",
cbf=goScene"mg_cubefield", cbf=goScene"mg_cubefield",
["2048"]=goScene"mg_2048", ["2048"]=goScene"mg_2048",
gtt=goScene"mg_get10", jgt=goScene"mg_jgt",
get10="gtt",
flag=function() flag=function()
BG.setDefault("none") BG.setDefault("none")
BGM.setDefault(false) BGM.setDefault(false)

View File

@@ -22,12 +22,8 @@ local tileColor={
{.78, .31, .00}, {.78, .31, .00},
{.78, .55, .04}, {.78, .55, .04},
{.12, .12, .51}, {.12, .12, .51},
{.78, .78, .78},
{.40, .40, .40},
{.20, .20, .20},
{.00, .00, .00},
} }
local newTile={0,2,2,2,3,3,3,3,4,4,4,5,5} local newTile={0,2,2,2,3,3,3,3,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5}
local board,cx,cy local board,cx,cy
local startTime,time local startTime,time
@@ -147,15 +143,9 @@ function scene.mouseDown(x,y)
merge() merge()
end end
function scene.touchDown(x,y) scene.touchDown=scene.mouseMove
scene.mouseMove(x,y) scene.touchMove=scene.mouseMove
end scene.touchClick=scene.mouseDown
function scene.touchMove(x,y)
scene.mouseMove(x,y)
end
function scene.touchClick(x,y)
scene.mouseDown(x,y)
end
function scene.update() function scene.update()
if state==1 then if state==1 then
@@ -215,17 +205,22 @@ function scene.draw()
gc.setLineWidth(4) gc.setLineWidth(4)
setFont(70) setFont(70)
local hide=blind and state==1
for i=1,5 do for i=1,5 do
for j=1,5 do for j=1,5 do
local N=board[i][j] local N=board[i][j]
if N>0 then if N>0 then
if blind and state==1 and N>newTile[maxTile]then if hide and N>newTile[maxTile]then
setColor(COLOR.dGrey) setColor(COLOR.dGrey)
rectangle("fill",320+j*128-128,40+i*128-128,128,128) rectangle("fill",320+j*128-128,40+i*128-128,128,128)
setColor(1,1,1,.3) setColor(1,1,1,.3)
mStr("?",j*128+256,i*128-75) mStr("?",j*128+256,i*128-75)
else else
setColor(tileColor[N]) if N<=13 then
setColor(tileColor[N])
else
setColor(COLOR.rainbow(4*TIME()-i-j))
end
rectangle("fill",320+j*128-128,40+i*128-128,128,128) rectangle("fill",320+j*128-128,40+i*128-128,128,128)
setColor(1,1,1,.9) setColor(1,1,1,.9)
mStr(N,j*128+256,i*128-75) mStr(N,j*128+256,i*128-75)
@@ -240,7 +235,7 @@ function scene.draw()
end end
setFont(50) setFont(50)
setColor(1,1,1) setColor(1,1,1)
mStr("Just Get 10",160,580) mStr("Just Get Ten",160,580)
end end
scene.widgetList={ scene.widgetList={