ghost样式预览 close #95

This commit is contained in:
MrZ626
2021-06-28 20:25:27 +08:00
parent f1416f46fc
commit 1c553df53a
2 changed files with 14 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
local gc=love.graphics
local scene={}
function scene.sceneInit()
@@ -7,6 +9,16 @@ function scene.sceneBack()
FILE.save(SETTING,'conf/settings')
end
local fakePlayer={cur={bk={{true}}},curX=0,ghoY=0}
function scene.draw()
gc.push('transform')
gc.translate(720,149-WIDGET.scrollPos)
gc.scale(2)
gc.setColor(1,1,1)
PLY.draw.drawGhost[SETTING.ghostType](fakePlayer,math.floor(TIME()*3)%16+1,SETTING.ghost)
gc.pop()
end
scene.widgetScrollHeight=620
scene.widgetList={
WIDGET.newText{name="title", x=640,y=15,font=80},