排位战菜单(只是菜单,没有功能)

This commit is contained in:
MrZ626
2021-05-26 20:50:39 +08:00
parent 276a37361e
commit 34886ca643
9 changed files with 97 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
--Space with stars
local gc=love.graphics
local back={}
local upCover do
local L={1,64}
for i=0,63 do
table.insert(L,{'setCL',.6,1,1,i*.01})
table.insert(L,{'fRect',0,63-i,1,1})
end
upCover=DOGC(L)
end
local downCover do
local L={1,64}
for i=0,63 do
table.insert(L,{'setCL',1,.5,.8,i*.01})
table.insert(L,{'fRect',0,i,1,1})
end
downCover=DOGC(L)
end
local W,H
function back.init()
BG.resize(SCR.w,SCR.h)
end
function back.resize(w,h)
W,H=w,h
end
function back.update()
end
function back.draw()
gc.clear(.1,.1,.1)
gc.draw(upCover,0,0,0,W,H*.3/64)
gc.draw(downCover,0,H*.7,0,W,H*.3/64)
end
return back