整理代码,大规模整理(展开)使用次数不多的局部变量名
框架跟进
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
--Fast lightning + spining tetromino
|
||||
local gc=love.graphics
|
||||
local int,rnd=math.floor,math.random
|
||||
local back={}
|
||||
|
||||
@@ -15,11 +14,11 @@ end
|
||||
function back.draw()
|
||||
local R=7-int(t*.5%7)
|
||||
local T=1.2-t%15%6%1.8
|
||||
if T<.26 then gc.clear(T,T,T)
|
||||
else gc.clear(0,0,0)
|
||||
if T<.26 then GC.clear(T,T,T)
|
||||
else GC.clear(0,0,0)
|
||||
end
|
||||
local _=colorLib[SETTING.skin[R]]
|
||||
gc.setColor(_[1],_[2],_[3],.12)
|
||||
gc.draw(TEXTURE.miniBlock[R],SCR.cx,SCR.cy,t%3.1416*6,200*SCR.k,nil,2*DSCP[R][0][2]+1,2*(#blocks[R][0]-DSCP[R][0][1])-1)
|
||||
GC.setColor(_[1],_[2],_[3],.12)
|
||||
GC.draw(TEXTURE.miniBlock[R],SCR.cx,SCR.cy,t%3.1416*6,200*SCR.k,nil,2*DSCP[R][0][2]+1,2*(#blocks[R][0]-DSCP[R][0][1])-1)
|
||||
end
|
||||
return back
|
||||
|
||||
Reference in New Issue
Block a user