Skip to content

Commit

Permalink
微调打字小游戏彩蛋
Browse files Browse the repository at this point in the history
框架跟进
  • Loading branch information
MrZ626 committed Sep 12, 2024
1 parent fda9404 commit fc97e3e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 1 files
+18 −6 stringExtend.lua
1 change: 0 additions & 1 deletion assets/scene/main_out.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ function scene.keyDown(key,isRep)
secretInput=0
end
end
print(secretInput)
return true
end

Expand Down
12 changes: 4 additions & 8 deletions assets/scene_app/fastype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@ local rnd=math.random
local levels={
A_Z="ABCDEFGHIJKLMNOPQRSTUVWXYZ",
Z_A="ZYXWVUTSRQPONMLKJIHGFEDCBA",
Tech1="TECHMINOHAOWAN",
Tech2="TECHMINOISFUN",
Hello="HELLOWORLD",
TG1="TECHMINOGALAXYHAOWAN",
TG2="TECHMINOGALAXYISFUN",
KeyTest1="THEQUICKBROWNFOXJUMPSOVERALAZYDOG",
KeyTest2="THEFIVEBOXINGWIZARDSJUMPQUICKLY",
Hello="HELLOWORLD",
Roll1="QWERTYUIOPASDFGHJKLZXCVBNM",
Roll2="QAZWSXEDCRFVTGBYHNUJMIKOLP",
Roll3="ZAQWSXCDERFVBGTYHNMJUIKLOP",
ZZZ="ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ",
ZXZX="ZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZXZX",
ZMZM="ZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZMZM",
Stair="ZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCV",
Stair1="ZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCVZXCV",
Stair2="ZXCVCXZXCVCXZXCVCXZXCVCXZXCVCXZXCVCXZXCVCXZXCVCXZXCVCXZXCVCXZXCV",
Stair3="XZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCVXZCV",
Stair4="ZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXVZCXV",
BPW="OHOOOOOOOOOAAAAEAAIAUJOOOOOOOOOOOAAEOAAUUAEEEEEEEEEAAAAEAEIEAJOOOOOOOOOOEEEEOAAAAAAA",
}

Expand Down Expand Up @@ -127,7 +123,7 @@ function scene.draw()
end

scene.widgetList={
WIDGET.new{type='selector',name='level',text="",x=220,y=640,w=200,list={'A_Z','Z_A','Tech1','Tech2','TG1','TG2','KeyTest1','KeyTest2','Hello','Roll1','Roll2','Roll3','ZZZ','ZXZX','ZMZM','Stair','Stair2','Stair3','BPW'},disp=function() return levelName end,code=function(i) levelName=i; targetString=levels[i] end,visibleTick=function() return state==0 end},
WIDGET.new{type='selector',name='level',text="",x=220,y=640,w=200,list={'A_Z','Z_A','HELLO','TG1','TG2','KeyTest1','KeyTest2','Roll1','Roll2','Roll3','Stair1','Stair2','Stair3','Stair4','BPW'},disp=function() return levelName end,code=function(i) levelName=i; targetString=levels[i] end,visibleTick=function() return state==0 end},
WIDGET.new{type='button', x=160,y=100,w=180,h=100,color='lG',fontSize=60,text=CHAR.icon.retry,code=WIDGET.c_pressKey'space'},
WIDGET.new{type='button', name='keyboard',x=160,y=210,w=180,h=100,fontSize=60,text=CHAR.icon.keyboard,code=function() love.keyboard.setTextInput(true,0,select(2,SCR.xOy:transformPoint(0,500)),1,1) end},
WIDGET.new{type='button', pos={1,1},x=-120,y=-80,w=160,h=80,sound_trigger='button_back',fontSize=60,text=CHAR.icon.back,code=WIDGET.c_backScn()},
Expand Down

0 comments on commit fc97e3e

Please sign in to comment.