整理代码,大规模整理(展开)使用次数不多的局部变量名
框架跟进
This commit is contained in:
@@ -8,7 +8,7 @@ return{
|
||||
},
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.atk,63,280)
|
||||
GC.mStr(P.stat.atk,63,280)
|
||||
mText(TEXTOBJ.atk,63,350)
|
||||
end,
|
||||
bg='tunnel',bgm='echo',
|
||||
|
||||
@@ -8,7 +8,7 @@ return{
|
||||
},
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.atk,63,280)
|
||||
GC.mStr(P.stat.atk,63,280)
|
||||
mText(TEXTOBJ.atk,63,350)
|
||||
end,
|
||||
bg='blockhole',bgm='echo',
|
||||
|
||||
@@ -7,7 +7,7 @@ return{
|
||||
},
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.atk,63,280)
|
||||
GC.mStr(P.stat.atk,63,280)
|
||||
mText(TEXTOBJ.atk,63,350)
|
||||
end,
|
||||
bg='tunnel',bgm='echo',
|
||||
|
||||
@@ -8,7 +8,7 @@ return{
|
||||
},
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.atk,63,280)
|
||||
GC.mStr(P.stat.atk,63,280)
|
||||
mText(TEXTOBJ.atk,63,350)
|
||||
end,
|
||||
bg='blockhole',bgm='echo',
|
||||
|
||||
@@ -6,7 +6,6 @@ local border=GC.DO{334,620,
|
||||
{'dRect',318,10,15,604,3},
|
||||
{'dRect',1,10,15,604,3},
|
||||
}
|
||||
local gc=love.graphics
|
||||
local sin,min=math.sin,math.min
|
||||
return{
|
||||
env={
|
||||
@@ -18,38 +17,38 @@ return{
|
||||
freshLimit=15,
|
||||
mesDisp=function(P,repMode)
|
||||
if not GAME.result then
|
||||
gc.push('transform')
|
||||
GC.push('transform')
|
||||
if repMode then
|
||||
gc.origin()
|
||||
gc.setColor(COLOR.X)
|
||||
gc.rectangle('fill',0,0,SCR.w,SCR.h)
|
||||
GC.origin()
|
||||
GC.setColor(COLOR.X)
|
||||
GC.rectangle('fill',0,0,SCR.w,SCR.h)
|
||||
else
|
||||
gc.clear(.2,.2,.2)
|
||||
gc.setColor(.5,.5,.5)
|
||||
GC.clear(.2,.2,.2)
|
||||
GC.setColor(.5,.5,.5)
|
||||
|
||||
--Frame & Username
|
||||
gc.setColor(.8,.8,.8)
|
||||
gc.setLineWidth(2)
|
||||
gc.rectangle('line',12,20,100,80,5)
|
||||
gc.rectangle('line',488,20,100,80,5)
|
||||
gc.draw(border,-17+150,-12)
|
||||
GC.setColor(.8,.8,.8)
|
||||
GC.setLineWidth(2)
|
||||
GC.rectangle('line',12,20,100,80,5)
|
||||
GC.rectangle('line',488,20,100,80,5)
|
||||
GC.draw(border,-17+150,-12)
|
||||
setFont(30)
|
||||
mStr(P.username,300,-60)
|
||||
GC.mStr(P.username,300,-60)
|
||||
end
|
||||
gc.pop()
|
||||
GC.pop()
|
||||
end
|
||||
|
||||
--Figures
|
||||
local t=TIME()
|
||||
gc.setColor(1,1,1,.5+.2*sin(t))
|
||||
gc.draw(IMG.hbm,-276,-86,0,1.5)
|
||||
gc.draw(IMG.electric,476,152,0,2.6)
|
||||
GC.setColor(1,1,1,.5+.2*sin(t))
|
||||
GC.draw(IMG.hbm,-276,-86,0,1.5)
|
||||
GC.draw(IMG.electric,476,152,0,2.6)
|
||||
|
||||
--Texts
|
||||
gc.setColor(.8,.8,.8)
|
||||
GC.setColor(.8,.8,.8)
|
||||
mText(TEXTOBJ.techrash,63,420)
|
||||
setFont(75)
|
||||
mStr(P.stat.clears[4],63,340)
|
||||
GC.mStr(P.stat.clears[4],63,340)
|
||||
end,
|
||||
eventSet='checkLine_40',
|
||||
bg='none',bgm='far',
|
||||
|
||||
@@ -4,7 +4,7 @@ return{
|
||||
bg='bg1',bgm='way',
|
||||
mesDisp=function(P)
|
||||
setFont(55)
|
||||
mStr(10-P.stat.dig_quad,63,265)
|
||||
GC.mStr(10-P.stat.dig_quad,63,265)
|
||||
end,
|
||||
hook_drop=function(P)
|
||||
if P.lastPiece.row>0 and P.lastPiece.row<4 then
|
||||
|
||||
@@ -4,8 +4,8 @@ return{
|
||||
infHold=true,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(("%.1f"):format(P.stat.atk),63,190)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),63,310)
|
||||
GC.mStr(("%.1f"):format(P.stat.atk),63,190)
|
||||
GC.mStr(("%.2f"):format(P.stat.atk/P.stat.row),63,310)
|
||||
mText(TEXTOBJ.atk,63,243)
|
||||
mText(TEXTOBJ.eff,63,363)
|
||||
end,
|
||||
|
||||
@@ -33,9 +33,9 @@ return{
|
||||
hook_drop=check_rise,
|
||||
mesDisp=function(P)
|
||||
setFont(45)
|
||||
mStr(P.stat.dig,63,190)
|
||||
mStr(P.stat.atk,63,310)
|
||||
mStr(("%.2f"):format(P.stat.atk/P.stat.row),63,420)
|
||||
GC.mStr(P.stat.dig,63,190)
|
||||
GC.mStr(P.stat.atk,63,310)
|
||||
GC.mStr(("%.2f"):format(P.stat.atk/P.stat.row),63,420)
|
||||
mText(TEXTOBJ.line,63,243)
|
||||
mText(TEXTOBJ.atk,63,363)
|
||||
mText(TEXTOBJ.eff,63,475)
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
ospin=false,
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.pc,63,340)
|
||||
GC.mStr(P.stat.pc,63,340)
|
||||
mText(TEXTOBJ.pc,63,410)
|
||||
end,
|
||||
eventSet='checkLine_100',
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
ospin=false,
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.pc,63,340)
|
||||
GC.mStr(P.stat.pc,63,340)
|
||||
mText(TEXTOBJ.pc,63,410)
|
||||
end,
|
||||
eventSet='checkLine_100',
|
||||
|
||||
@@ -4,7 +4,7 @@ return{
|
||||
drop=150,lock=1e99,
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.pc,63,340)
|
||||
GC.mStr(P.stat.pc,63,340)
|
||||
mText(TEXTOBJ.pc,63,410)
|
||||
end,
|
||||
eventSet='checkLine_100',
|
||||
|
||||
Reference in New Issue
Block a user