gray背景改名fixColor,允许自定义颜色
This commit is contained in:
11
parts/backgrounds/fixColor.lua
Normal file
11
parts/backgrounds/fixColor.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
--Customizable grey background
|
||||
local gc=love.graphics
|
||||
local back={}
|
||||
local r,g,b=.26,.26,.26
|
||||
function back.draw()
|
||||
gc.clear(r,g,b)
|
||||
end
|
||||
function back.event(_r,_g,_b)
|
||||
r,g,b=_r,_g,_b
|
||||
end
|
||||
return back
|
||||
Reference in New Issue
Block a user