整理代码,大规模整理(展开)使用次数不多的局部变量名
框架跟进
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
local gc=love.graphics
|
||||
|
||||
local scene={}
|
||||
|
||||
function scene.draw()
|
||||
--QR Code frame
|
||||
gc.setLineWidth(2)
|
||||
gc.rectangle('line',298,98,263,263)
|
||||
gc.rectangle('line',718,318,250,250)
|
||||
GC.setLineWidth(2)
|
||||
GC.rectangle('line',298,98,263,263)
|
||||
GC.rectangle('line',718,318,250,250)
|
||||
|
||||
--Support text
|
||||
gc.setColor(1,1,1,MATH.sin(TIME()*20)*.3+.6)
|
||||
GC.setColor(1,1,1,MATH.sin(TIME()*20)*.3+.6)
|
||||
setFont(30)
|
||||
mStr(text.support,430+MATH.sin(TIME()*4)*20,363)
|
||||
mStr(text.support,844-MATH.sin(TIME()*4)*20,570)
|
||||
GC.mStr(text.support,430+MATH.sin(TIME()*4)*20,363)
|
||||
GC.mStr(text.support,844-MATH.sin(TIME()*4)*20,570)
|
||||
end
|
||||
|
||||
scene.widgetList={
|
||||
|
||||
Reference in New Issue
Block a user