主菜单Demo玩家平滑下落显示
This commit is contained in:
@@ -641,7 +641,8 @@ function draw.demo(P)
|
|||||||
|
|
||||||
--Camera
|
--Camera
|
||||||
gc.push("transform")
|
gc.push("transform")
|
||||||
gc.translate(P.x,P.y)gc.scale(P.size)
|
gc.translate(P.x,P.y)
|
||||||
|
gc.scale(P.size)
|
||||||
gc.push("transform")
|
gc.push("transform")
|
||||||
gc.translate(P.fieldOff.x,P.fieldOff.y)
|
gc.translate(P.fieldOff.x,P.fieldOff.y)
|
||||||
|
|
||||||
@@ -659,8 +660,11 @@ function draw.demo(P)
|
|||||||
if P.cur and P.waiting==-1 then
|
if P.cur and P.waiting==-1 then
|
||||||
if ENV.ghost then drawGhost(P,curColor)end
|
if ENV.ghost then drawGhost(P,curColor)end
|
||||||
if ENV.block then
|
if ENV.block then
|
||||||
|
local dy=ENV.smooth and P.imgY~=P.curY and(P.dropDelay/ENV.drop-1)*30 or 0
|
||||||
|
gc.translate(0,-dy)
|
||||||
drawBlockOutline(P,SKIN.curText[curColor],P.lockDelay/ENV.lock)
|
drawBlockOutline(P,SKIN.curText[curColor],P.lockDelay/ENV.lock)
|
||||||
drawBlock(P,curColor)
|
drawBlock(P,curColor)
|
||||||
|
gc.translate(0,dy)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
gc.pop()
|
gc.pop()
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ end
|
|||||||
|
|
||||||
local DemoEnv={
|
local DemoEnv={
|
||||||
das=10,arr=2,sddas=2,sdarr=2,
|
das=10,arr=2,sddas=2,sdarr=2,
|
||||||
drop=1e99,lock=1e99,
|
drop=60,lock=60,
|
||||||
wait=10,fall=20,
|
wait=10,fall=20,
|
||||||
highCam=false,
|
highCam=false,
|
||||||
life=1e99,
|
life=1e99,
|
||||||
|
|||||||
Reference in New Issue
Block a user