staff增加彩蛋提示

This commit is contained in:
MrZ626
2021-01-22 01:02:02 +08:00
parent 9a619734ae
commit bbe6614ddc

View File

@@ -12,10 +12,11 @@ function scene.sceneInit()
end end
function scene.mouseDown(x,y) function scene.mouseDown(x,y)
local T=40*math.min(time,45)
if x>230 and x<1050 then if x>230 and x<1050 then
if math.abs(y-800+time*40)<70 then if math.abs(y-800+T)<70 then
loadGame("sprintLock",true) loadGame("sprintLock",true)
elseif math.abs(y-2160+time*40)<70 then elseif math.abs(y-2160+T)<70 then
loadGame("sprintFix",true) loadGame("sprintFix",true)
end end
end end
@@ -43,18 +44,20 @@ function scene.update(dt)
elseif v>1 then elseif v>1 then
v=v-.26 v=v-.26
end end
time=math.min(time+v*dt,45) time=time+v*dt
end end
function scene.draw() function scene.draw()
local T=40*math.min(time,45)
local L=text.staff local L=text.staff
setFont(40) setFont(40)
gc.setColor(1,1,1) gc.setColor(1,1,1)
for i=1,#L do for i=1,#L do
mStr(L[i],640,800+70*i-time*40) mStr(L[i],640,800+70*i-T)
end end
mDraw(IMG.title_color,640,800-time*40,nil,2) mDraw(IMG.title_color,640,800-T,nil,2)
mDraw(IMG.title_color,640,2160-time*40,nil,2) mDraw(IMG.title_color,640,2160-T,nil,2)
if time>55 then gc.print("CLICK ME →",50,550,-.5)end
end end
scene.widgetList={ scene.widgetList={