计算器地位改为小游戏,软件锁功能取消,未来准备与加载动画合并
This commit is contained in:
@@ -464,7 +464,7 @@ function love.run()
|
|||||||
love.resize(gc.getWidth(),gc.getHeight())
|
love.resize(gc.getWidth(),gc.getHeight())
|
||||||
|
|
||||||
--Scene Launch
|
--Scene Launch
|
||||||
SCN.init(SETTING.appLock and"calculator"or"load")
|
SCN.init("load")
|
||||||
|
|
||||||
return function()
|
return function()
|
||||||
local _
|
local _
|
||||||
|
|||||||
@@ -768,7 +768,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; Schulte Grid: grid\nPong: pong; AtoZ: atoz; 2048: 2048\nCubefield: cube; Just get ten: ten\nUltimate Tic-tac-toe: uttt\nTapping speed test: tap\nDon't touch white: dtw\nCannon: can; Dropper: drp",
|
"Type the following codes in the search bar of this dictionary for some fun minigames!\n\n15-Puzzle: 15p; Schulte Grid: grid\nPong: pong; AtoZ: atoz; 2048: 2048\nCubefield: cube; Just get ten: ten\nUltimate Tic-tac-toe: uttt\nTapping speed test: tap\nDon't touch white: dtw\nCannon: can; Dropper: drp\nCalculater: calc",
|
||||||
},
|
},
|
||||||
|
|
||||||
--English
|
--English
|
||||||
|
|||||||
@@ -775,7 +775,7 @@ return{
|
|||||||
{"小游戏",
|
{"小游戏",
|
||||||
"小游戏 minigame xiaoyouxi",
|
"小游戏 minigame xiaoyouxi",
|
||||||
"other",
|
"other",
|
||||||
"输入以下词语,小游戏免费玩!\n\n15-Puzzle: 15p; Schulte Grid: grid\nPong: pong; AtoZ: atoz; 2048: 2048\nCubefield: cube; Just get ten: ten\nUltimate Tic-tac-toe: uttt\nTapping speed test: tap\nDon't touch white: dtw\nCannon: can; Dropper: drp",
|
"输入以下词语,小游戏免费玩!\n\n15-Puzzle: 15p; Schulte Grid: grid\nPong: pong; AtoZ: atoz; 2048: 2048\nCubefield: cube; Just get ten: ten\nUltimate Tic-tac-toe: uttt\nTapping speed test: tap\nDon't touch white: dtw\nCannon: can; Dropper: drp\nCalculater: calc",
|
||||||
},
|
},
|
||||||
|
|
||||||
--英文
|
--英文
|
||||||
|
|||||||
@@ -275,9 +275,8 @@ return{
|
|||||||
autoPause="Pause when focus is lost",
|
autoPause="Pause when focus is lost",
|
||||||
swap="Key Combination (Change Atk. Mode)",
|
swap="Key Combination (Change Atk. Mode)",
|
||||||
fine="Finesse Error Sound",
|
fine="Finesse Error Sound",
|
||||||
appLock="App Lock (Password: 626)",
|
appLock="App Lock (Password: 2+6)",
|
||||||
simpMode="Simple mode",
|
simpMode="Simple mode",
|
||||||
calc="App Lock",
|
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
title="Video Settings",
|
title="Video Settings",
|
||||||
|
|||||||
@@ -251,8 +251,8 @@ return{
|
|||||||
autoPause="Mettre en pause en cas de perte de focus",
|
autoPause="Mettre en pause en cas de perte de focus",
|
||||||
swap="Combinaison de touches (changer le mode d'attaque)",
|
swap="Combinaison de touches (changer le mode d'attaque)",
|
||||||
fine="Son d'erreur de Finesse",
|
fine="Son d'erreur de Finesse",
|
||||||
appLock="Verrouillage d'appli (MDP : 626)",
|
appLock="Verrouillage d'appli (MDP : 2+6)",
|
||||||
calc="Verrouillage d'appli",
|
-- simpMode="Simple mode",
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
title="Paramètres vidéo",
|
title="Paramètres vidéo",
|
||||||
|
|||||||
@@ -275,9 +275,8 @@ return{
|
|||||||
autoPause="Pausar quando foco for perco",
|
autoPause="Pausar quando foco for perco",
|
||||||
swap="Combinação de tecla(Mudar modo de atk)",
|
swap="Combinação de tecla(Mudar modo de atk)",
|
||||||
fine="Som Falha de destreza",
|
fine="Som Falha de destreza",
|
||||||
appLock="App Lock (Senha: 626)",
|
appLock="App Lock (Senha: 2+6)",
|
||||||
-- simpMode="Simple mode",
|
-- simpMode="Simple mode",
|
||||||
calc="App Lock",
|
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
title="Config. de vídeo",
|
title="Config. de vídeo",
|
||||||
|
|||||||
@@ -255,9 +255,8 @@ return{
|
|||||||
autoPause="Pausar cuando la ventana no está enfocada",
|
autoPause="Pausar cuando la ventana no está enfocada",
|
||||||
swap="Combinación de Teclas (Cambiar Modo de Ataque)",
|
swap="Combinación de Teclas (Cambiar Modo de Ataque)",
|
||||||
fine="Sonido de Error de Finesse",
|
fine="Sonido de Error de Finesse",
|
||||||
appLock="Bloqueo de App (Contraseña: 626)",
|
appLock="Bloqueo de App (Contraseña: 2+6)",
|
||||||
-- simpMode="Simple mode",
|
-- simpMode="Simple mode",
|
||||||
calc="Bloqueo de App",
|
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
title="Ajustes de Video",
|
title="Ajustes de Video",
|
||||||
|
|||||||
@@ -135,9 +135,8 @@ return{
|
|||||||
autoPause="A||",
|
autoPause="A||",
|
||||||
swap="=+=+=",
|
swap="=+=+=",
|
||||||
fine="12 X 21",
|
fine="12 X 21",
|
||||||
appLock="?XX(=626)",
|
appLock="?XX(=2+6)",
|
||||||
-- simpMode="_",
|
simpMode=".",
|
||||||
calc="?XX",
|
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
title="{~~}",
|
title="{~~}",
|
||||||
|
|||||||
@@ -70,7 +70,6 @@ return{
|
|||||||
ctrl="改控制",
|
ctrl="改控制",
|
||||||
key="改键位",
|
key="改键位",
|
||||||
touch="改触屏",
|
touch="改触屏",
|
||||||
calc="家长锁",
|
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
title="改画面",
|
title="改画面",
|
||||||
|
|||||||
@@ -276,9 +276,8 @@ return{
|
|||||||
autoPause="失去焦点自动暂停",
|
autoPause="失去焦点自动暂停",
|
||||||
swap="组合键切换攻击模式",
|
swap="组合键切换攻击模式",
|
||||||
fine="极简操作提示音",
|
fine="极简操作提示音",
|
||||||
appLock="软件锁(密码626)",
|
appLock="软件锁(密码2+6)",
|
||||||
simpMode="简洁模式",
|
simpMode="简洁模式",
|
||||||
calc="软件锁",
|
|
||||||
},
|
},
|
||||||
setting_video={
|
setting_video={
|
||||||
title="画面设置",
|
title="画面设置",
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ local eggInput={
|
|||||||
dtw=goScene"mg_dtw",
|
dtw=goScene"mg_dtw",
|
||||||
can=goScene"mg_cannon",
|
can=goScene"mg_cannon",
|
||||||
drp=goScene"mg_dropper",
|
drp=goScene"mg_dropper",
|
||||||
|
calc=goScene"mg_calc",
|
||||||
flag=function()
|
flag=function()
|
||||||
BG.setDefault("none")
|
BG.setDefault("none")
|
||||||
BGM.setDefault(false)
|
BGM.setDefault(false)
|
||||||
|
|||||||
@@ -6,16 +6,14 @@ local find,sub,byte=string.find,string.sub,string.byte
|
|||||||
local scene={}
|
local scene={}
|
||||||
|
|
||||||
local reg--register
|
local reg--register
|
||||||
local val--value
|
local val--result value
|
||||||
local sym--symbol
|
local sym--symbol
|
||||||
local pass--if password correct
|
|
||||||
|
|
||||||
function scene.sceneInit()
|
function scene.sceneInit()
|
||||||
BG.set("none")
|
BG.set("none")
|
||||||
reg=false
|
reg=false
|
||||||
val="0"
|
val="0"
|
||||||
sym=false
|
sym=false
|
||||||
pass=false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
scene.mouseDown=NULL
|
scene.mouseDown=NULL
|
||||||
@@ -74,14 +72,11 @@ function scene.keyDown(k)
|
|||||||
sym="="
|
sym="="
|
||||||
reg=false
|
reg=false
|
||||||
local v=tonumber(val)
|
local v=tonumber(val)
|
||||||
if v==600+26 then pass=true
|
if v==190000+6022 then
|
||||||
elseif v==190000+6022 then
|
|
||||||
pass=true
|
|
||||||
_G["\100\114\97\119\70\87\77"]=NULL
|
_G["\100\114\97\119\70\87\77"]=NULL
|
||||||
LOG.print("\68\69\86\58\87\97\116\101\114\109\97\114\107\32\82\101\109\111\118\101\100","message")
|
LOG.print("\68\69\86\58\87\97\116\101\114\109\97\114\107\32\82\101\109\111\118\101\100","message")
|
||||||
SFX.play("clear")
|
SFX.play("clear")
|
||||||
elseif v==7294e4+3816 then
|
elseif v==7294e4+3816 then
|
||||||
pass=true
|
|
||||||
for name,M in next,MODES do
|
for name,M in next,MODES do
|
||||||
if type(name)=="string"and not RANKS[name]and M.x then
|
if type(name)=="string"and not RANKS[name]and M.x then
|
||||||
RANKS[name]=M.score and 0 or 6
|
RANKS[name]=M.score and 0 or 6
|
||||||
@@ -98,23 +93,21 @@ function scene.keyDown(k)
|
|||||||
elseif v==654321 then
|
elseif v==654321 then
|
||||||
love._setGammaCorrect(not gc.isGammaCorrect())
|
love._setGammaCorrect(not gc.isGammaCorrect())
|
||||||
LOG.print("GammaCorrect: "..(gc.isGammaCorrect()and"on"or"off"),"warn")
|
LOG.print("GammaCorrect: "..(gc.isGammaCorrect()and"on"or"off"),"warn")
|
||||||
elseif v==114514 or v==1919810 or v==1145141919810 then
|
|
||||||
error()
|
|
||||||
elseif v==200 then
|
elseif v==200 then
|
||||||
loadGame("marathon_bfmax",true)
|
loadGame("marathon_bfmax",true)
|
||||||
elseif v==670 then
|
elseif v==670 then
|
||||||
SCR.print()
|
SCR.print()
|
||||||
end
|
end
|
||||||
elseif k=="escape"then
|
elseif k=="escape"then
|
||||||
val,reg,sym="0"
|
if val~="0"then
|
||||||
|
val,reg,sym="0"
|
||||||
|
else
|
||||||
|
scene.keyDown("quit")
|
||||||
|
end
|
||||||
elseif k=="delete"then
|
elseif k=="delete"then
|
||||||
val="0"
|
val="0"
|
||||||
elseif k=="space"and pass then
|
elseif k=="quit"then
|
||||||
if LOADED then
|
SCN.back()
|
||||||
SCN.back()
|
|
||||||
else
|
|
||||||
SCN.swapTo("load","swipeD")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -139,15 +132,15 @@ scene.widgetList={
|
|||||||
WIDGET.newKey{name="_8",x=250,y=500,w=90,fText="8",font=50,code=pressKey"8"},
|
WIDGET.newKey{name="_8",x=250,y=500,w=90,fText="8",font=50,code=pressKey"8"},
|
||||||
WIDGET.newKey{name="_9",x=350,y=500,w=90,fText="9",font=50,code=pressKey"9"},
|
WIDGET.newKey{name="_9",x=350,y=500,w=90,fText="9",font=50,code=pressKey"9"},
|
||||||
WIDGET.newKey{name="_0",x=150,y=600,w=90,fText="0",font=50,code=pressKey"0"},
|
WIDGET.newKey{name="_0",x=150,y=600,w=90,fText="0",font=50,code=pressKey"0"},
|
||||||
WIDGET.newKey{name=".", x=250,y=600,w=90,fText=".",color="lPurple", font=50,code=pressKey"."},
|
WIDGET.newKey{name=".", x=250,y=600,w=90,fText=".",color="lM",font=50,code=pressKey"."},
|
||||||
WIDGET.newKey{name="e", x=350,y=600,w=90,fText="e",color="lPurple", font=50,code=pressKey"e"},
|
WIDGET.newKey{name="e", x=350,y=600,w=90,fText="e",color="lM",font=50,code=pressKey"e"},
|
||||||
WIDGET.newKey{name="+", x=450,y=300,w=90,fText="+",color="lBlue", font=50,code=pressKey"+"},
|
WIDGET.newKey{name="+", x=450,y=300,w=90,fText="+",color="lB",font=50,code=pressKey"+"},
|
||||||
WIDGET.newKey{name="-", x=450,y=400,w=90,fText="-",color="lBlue", font=50,code=pressKey"-"},
|
WIDGET.newKey{name="-", x=450,y=400,w=90,fText="-",color="lB",font=50,code=pressKey"-"},
|
||||||
WIDGET.newKey{name="*", x=450,y=500,w=90,fText="*",color="lBlue", font=50,code=pressKey"*"},
|
WIDGET.newKey{name="*", x=450,y=500,w=90,fText="*",color="lB",font=50,code=pressKey"*"},
|
||||||
WIDGET.newKey{name="/", x=450,y=600,w=90,fText="/",color="lBlue", font=50,code=pressKey"/"},
|
WIDGET.newKey{name="/", x=450,y=600,w=90,fText="/",color="lB",font=50,code=pressKey"/"},
|
||||||
WIDGET.newKey{name="<", x=550,y=300,w=90,fText="<",color="lRed", font=50,code=pressKey"backspace"},
|
WIDGET.newKey{name="<", x=550,y=300,w=90,fText="<",color="lR",font=50,code=pressKey"backspace"},
|
||||||
WIDGET.newKey{name="=", x=550,y=400,w=90,fText="=",color="lYellow",font=50,code=pressKey"return"},
|
WIDGET.newKey{name="=", x=550,y=400,w=90,fText="=",color="lY",font=50,code=pressKey"return"},
|
||||||
WIDGET.newButton{name="play",x=640,y=600,w=180,h=90,fText="-->",color="lGreen",font=40,code=pressKey"space",hide=function()return not pass end},
|
WIDGET.newKey{name="back",x=1140,y=640,w=170,h=80,font=40,code=pressKey"quit"},
|
||||||
}
|
}
|
||||||
|
|
||||||
return scene
|
return scene
|
||||||
@@ -44,7 +44,6 @@ scene.widgetList={
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end},
|
end},
|
||||||
WIDGET.newButton{name="calc", x=1195, y=490, w=150,h=60,color="dGrey", font=25,code=goScene"calculator",hide=function()return not SETTING.appLock end},
|
|
||||||
WIDGET.newButton{name="back", x=1140, y=640, w=170,h=80, font=40,code=backScene},
|
WIDGET.newButton{name="back", x=1140, y=640, w=170,h=80, font=40,code=backScene},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user