From e6fea98822df7baac83425d52b73ebc2c95c2ce6 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 14 Sep 2020 12:41:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=A8=A1=E5=BC=8F=EF=BC=9AMPH?= =?UTF-8?q?=E7=AB=9E=E9=80=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/languages.lua | 6 +++++- modes/sprintMPH.lua | 36 ++++++++++++++++++++++++++++++++++++ parts/modes.lua | 5 +++-- 3 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 modes/sprintMPH.lua diff --git a/Zframework/languages.lua b/Zframework/languages.lua index 6a2ecb20..b6db84fa 100644 --- a/Zframework/languages.lua +++ b/Zframework/languages.lua @@ -499,6 +499,7 @@ local langList={ ["custom_clear"]= {"自定义", "普通", "画点什么然后把它消除!"}, ["custom_puzzle"]= {"自定义", "拼图", "画点什么然后把它拼出来吧!"}, ["sprintPenta"]= {"竞速", "五联块", "伤脑筋十八块"}, + ["sprintMPH"]= {"竞速", "MPH", "很经典"}, }, }, { @@ -997,6 +998,7 @@ local langList={ ["custom_clear"]= {"自定义", "普通", "画点什么然后把它消除!"}, ["custom_puzzle"]= {"自定义", "拼图", "画点什么然后把它拼出来吧!"}, ["sprintPenta"]= {"竞速", "五联块", "伤脑筋十八块"}, + ["sprintMPH"]= {"竞速", "MPH", "很经典"}, }, }, { @@ -1485,6 +1487,7 @@ local langList={ ["custom_clear"]= {"Custom", "NORMAL", "Draw something then clear it!!"}, ["custom_puzzle"]= {"Custom", "PUZZLE", "Draw something then stack it!!"}, ["sprintPenta"]= {"Sprint", "Pentomino", "Clear 40 lines with pentominoes.\n18 pentominoes in each bag."}, + ["sprintMPH"]= {"Sprint", "MPH", "Classic."}, }, }, { @@ -1971,6 +1974,7 @@ local langList={ ["custom_clear"]= {"Custom", "NORMAL", "Draw something then clear it!!"}, ["custom_puzzle"]= {"Custom", "PUZZLE", "Draw something then stack it!!"}, ["sprintPenta"]= {"Sprint", "Pentomino", "Puzzle-18"}, + ["sprintMPH"]= {"Sprint", "MPH", "Classic."}, }, }, { @@ -2470,7 +2474,7 @@ local langList={ ["infinite_dig"]= {"无尽:挖掘", "", "闲得慌的话来挖"}, ["custom_clear"]= {"自定义", "普通", "试验场"}, ["custom_puzzle"]= {"自定义", "拼图", "宁就是方块艺术家"}, - ["sprintPenta"]= {"竞速", "五联块", "哦哟?你急了"}, + ["sprintPenta"]= {"竞速", "五联块", "离谱"}, }, }, } diff --git a/modes/sprintMPH.lua b/modes/sprintMPH.lua new file mode 100644 index 00000000..9ecd7abc --- /dev/null +++ b/modes/sprintMPH.lua @@ -0,0 +1,36 @@ +local gc=love.graphics +local rnd=math.random +return{ + color=color.green, + env={ + drop=60,lock=60, + next=0,hold=false, + sequence="rnd", + target=40,dropPiece=PLY.check_lineReach, + bg="aura",bgm="race", + }, + load=function() + PLY.newPlayer(1,340,15) + end, + mesDisp=function(P) + setFont(55) + local r=40-P.stat.row + if r<0 then r=0 end + mStr(r,69,335) + P:drawTargetLine(r) + end, + score=function(P)return{P.stat.time,P.stat.piece}end, + scoreDisp=function(D)return toTime(D[1]).." "..D[2].." Pieces"end, + comp=function(a,b)return a[1]