ghost样式预览 close #95
This commit is contained in:
@@ -522,6 +522,8 @@ local function drawStartCounter(P)
|
||||
end
|
||||
|
||||
local draw={}
|
||||
draw.applyFieldOffset=applyFieldOffset
|
||||
draw.drawGhost=drawGhost
|
||||
function draw.drawNext_norm(P)
|
||||
local ENV=P.gameEnv
|
||||
local texture=SKIN.curText
|
||||
@@ -589,8 +591,6 @@ function draw.drawNext_hidden(P)
|
||||
end
|
||||
gc_translate(-316,-20)
|
||||
end
|
||||
draw.applyFieldOffset=applyFieldOffset
|
||||
|
||||
function draw.drawTargetLine(P,r)
|
||||
if r<21+(P.fieldBeneath+P.fieldUp)/30 and r>0 then
|
||||
gc_setLineWidth(4)
|
||||
|
||||
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user