代码规范:所有文件以空行结尾

This commit is contained in:
MrZ626
2021-08-28 16:46:10 +08:00
parent a1162f1b0f
commit a1c6f720a2
320 changed files with 333 additions and 333 deletions

View File

@@ -47,4 +47,4 @@ function BG.set(background)
end
return true
end
return BG
return BG

View File

@@ -111,4 +111,4 @@ function BGM.init(list)
BGM.nowPlay,BGM.playing=nil
end
end
return BGM
return BGM

View File

@@ -123,4 +123,4 @@ do--Rainbow generators
end
end
return COLOR
return COLOR

View File

@@ -87,4 +87,4 @@ function FILE.clear_s(path)
end
fs.remove(path)
end
return FILE
return FILE

View File

@@ -156,4 +156,4 @@ do--function GC.DO(L)
return canvas
end
end
return GC
return GC

View File

@@ -23,4 +23,4 @@ function IMG.init(list)
IMG.loadAll=nil
end
end
return IMG
return IMG

View File

@@ -732,4 +732,4 @@ function love.run()
if _<.0162 then WAIT(.0162-_)end
while TIME()-lastFrame<1/60 do end
end
end
end

View File

@@ -337,4 +337,4 @@ function json.decode(str)
if idx <= #str then decode_error(str, idx, "trailing garbage") end
return res
end
return json
return json

View File

@@ -53,4 +53,4 @@ function LANG.init(langList,publicText)--Attention, calling this will destory al
end
end
end
return LANG
return LANG

View File

@@ -83,4 +83,4 @@ function LIGHT.add(x,y,radius,solidFunc)
setPow=setPow,
}
end
return LIGHT
return LIGHT

View File

@@ -26,4 +26,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 screen_coords){
// Multiply the distance to get a soft fading
return vec4(vec3(1.),sum*smoothstep(1.,0.,r));
}
}

View File

@@ -17,4 +17,4 @@ vec4 effect(vec4 color,Image tex,vec2 tex_coords,vec2 screen_coords){
)return vec4(vec3(y/yresolution),1.);// Collision check, alpha>0.1 means transparent
}
return vec4(1.);// Return max distance 1
}
}

View File

@@ -145,4 +145,4 @@ function MES.traceback()
),5)
end
return MES
return MES

View File

@@ -173,4 +173,4 @@ function SCN.back()
SCN.stack[m],SCN.stack[m-1]=nil
end
end
return SCN
return SCN

View File

@@ -70,4 +70,4 @@ function SCR.info()
("k,dpi,rad : %.2f, %d, %.2f"):format(SCR.k,SCR.dpi,SCR.rad),
}
end
return SCR
return SCR

View File

@@ -35,4 +35,4 @@ else
end
return fontCache[s]
end
end
end

View File

@@ -84,4 +84,4 @@ function SFX.init(list)
end
end
end
return SFX
return SFX

View File

@@ -159,4 +159,4 @@ function STRING.unpackTable(t)
return JSON.decode(STRING.unpackText(t))
end
return STRING
return STRING

View File

@@ -202,4 +202,4 @@ function SYSFX.newLine(rate,x1,y1,x2,y2,r,g,b,a)
r=r or 1,g=g or 1,b=b or 1,a=a or 1,
})
end
return SYSFX
return SYSFX

View File

@@ -195,4 +195,4 @@ do--function TABLE.dumpDeflate(L,t)
TABLE.dumpDeflate=dump
end
return TABLE
return TABLE

View File

@@ -48,4 +48,4 @@ function TASK.clear()
i=i-1
end
end
return TASK
return TASK

View File

@@ -126,4 +126,4 @@ function TEXT.draw(list)
t:draw()
end
end
return TEXT
return TEXT

View File

@@ -98,4 +98,4 @@ function THEME.fresh()
THEME.set(THEME.calculate(os.date('%Y'),os.date('%m'),os.date('%d')))
end
return THEME
return THEME

View File

@@ -5,4 +5,4 @@ return function(t)
if L>0 then
vib(level[L+t])
end
end
end

View File

@@ -115,4 +115,4 @@ function VOC.init(list)
end
end
end
return VOC
return VOC

View File

@@ -188,4 +188,4 @@ function WS.update(dt)
end
end
return WS
return WS

View File

@@ -188,4 +188,4 @@ end
SOCK:close()
CHN_push(readCHN,8)--close
CHN_push(readCHN,err or"Disconnected")
error()
error()

View File

@@ -16,4 +16,4 @@ return function(y,key1,key2)
love.keypressed(key2 or"down")
float=float+1
end
end
end

View File

@@ -1505,4 +1505,4 @@ function WIDGET.draw()
gc_replaceTransform(SCR.xOy)
end
return WIDGET
return WIDGET