整理代码
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
local format=string.format
|
||||
return{
|
||||
color=COLOR.lH,
|
||||
env={
|
||||
@@ -11,8 +10,8 @@ return{
|
||||
load=function()
|
||||
PLY.newPlayer(1)
|
||||
end,
|
||||
score=function(P)return{P.modeData.event,P.stat.finesseRate*25/P.stat.piece}end,
|
||||
scoreDisp=function(D)return D[1].."Stage "..format("%.2f",D[2]).."%"end,
|
||||
score=function(P)return{P.modeData.event,P.stat.finesseRate*20/P.stat.piece}end,
|
||||
scoreDisp=function(D)return("%d Stage %.2f%"):format(D[1],D[2])end,
|
||||
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]>b[2]end,
|
||||
getRank=function(P)
|
||||
local W=P.modeData.event
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
local gc=love.graphics
|
||||
local format=string.format
|
||||
|
||||
return{
|
||||
color=COLOR.lBlue,
|
||||
@@ -40,7 +39,7 @@ return{
|
||||
mesDisp=function(P)
|
||||
setFont(75)
|
||||
local r=P.modeData.target*.1
|
||||
mStr(r<11 and 18 or r<22 and r+8 or format("%02x",r*10-220),69,210)
|
||||
mStr(r<11 and 18 or r<22 and r+8 or("%02x"):format(r*10-220),69,210)
|
||||
mText(drawableText.speedLV,69,290)
|
||||
setFont(45)
|
||||
mStr(P.stat.row,69,320)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
local format=string.format
|
||||
return{
|
||||
color=COLOR.white,
|
||||
env={
|
||||
@@ -11,8 +10,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
local format=string.format
|
||||
local function check_rise(P)
|
||||
local L=P.garbageBeneath
|
||||
if #P.clearedRow==0 then
|
||||
@@ -47,7 +46,7 @@ return{
|
||||
setFont(45)
|
||||
mStr(P.stat.dig,69,190)
|
||||
mStr(P.stat.atk,69,310)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,420)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,420)
|
||||
mText(drawableText.line,69,243)
|
||||
mText(drawableText.atk,69,363)
|
||||
mText(drawableText.eff,69,475)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
local format=string.format
|
||||
|
||||
return{
|
||||
color=COLOR.lYellow,
|
||||
env={
|
||||
@@ -16,8 +14,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
local format=string.format
|
||||
local function tech_check_hard(P)
|
||||
local C=P.lastPiece
|
||||
if C.row>0 then
|
||||
@@ -28,8 +27,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
local format=string.format
|
||||
|
||||
return{
|
||||
color=COLOR.magenta,
|
||||
env={
|
||||
@@ -14,8 +12,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
local format=string.format
|
||||
local function tech_check_hard(P)
|
||||
local C=P.lastPiece
|
||||
if C.row>0 then
|
||||
@@ -25,8 +24,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
local format=string.format
|
||||
|
||||
return{
|
||||
color=COLOR.red,
|
||||
env={
|
||||
@@ -14,8 +12,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
local format=string.format
|
||||
local function tech_check_hard(P)
|
||||
local C=P.lastPiece
|
||||
if C.row>0 then
|
||||
@@ -25,8 +24,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
local format=string.format
|
||||
|
||||
return{
|
||||
color=COLOR.green,
|
||||
env={
|
||||
@@ -14,8 +12,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
local format=string.format
|
||||
local function tech_check_hard(P)
|
||||
local C=P.lastPiece
|
||||
if C.row>0 then
|
||||
@@ -25,8 +24,8 @@ return{
|
||||
end,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(format("%.1f",P.stat.atk),69,190)
|
||||
mStr(format("%.2f",P.stat.atk/P.stat.row),69,310)
|
||||
mStr(("%.1f"):format(P.stat.atk),69,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),69,310)
|
||||
mText(drawableText.atk,69,243)
|
||||
mText(drawableText.eff,69,363)
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user