整理代码习惯,常量字符串改用单引号,可能有遗漏

This commit is contained in:
MrZ626
2021-04-30 01:00:22 +08:00
parent 7676f32cf2
commit eda6c0d746
213 changed files with 2503 additions and 2499 deletions

View File

@@ -62,16 +62,16 @@ function back.update(dt)
end
function back.draw()
gc.clear(.1,.1,.1)
gc.push("transform")
gc.push('transform')
gc.origin()
gc.setLineWidth(6)
for i=1,#squares do
local S=squares[i]
local c=S.color
gc.setColor(c[1],c[2],c[3],.6)
rectangle("line",S.x,S.y,S.size,S.size)
rectangle('line',S.x,S.y,S.size,S.size)
gc.setColor(c)
rectangle("fill",S.x,S.y,S.size,S.size)
rectangle('fill',S.x,S.y,S.size,S.size)
end
gc.pop()
end