主菜单Demo玩家平滑下落显示

This commit is contained in:
MrZ626
2020-11-20 11:16:50 +08:00
parent 9442da2b44
commit 8a9ae47d41
2 changed files with 6 additions and 2 deletions

View File

@@ -641,7 +641,8 @@ function draw.demo(P)
--Camera
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.translate(P.fieldOff.x,P.fieldOff.y)
@@ -659,8 +660,11 @@ function draw.demo(P)
if P.cur and P.waiting==-1 then
if ENV.ghost then drawGhost(P,curColor)end
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)
drawBlock(P,curColor)
gc.translate(0,dy)
end
end
gc.pop()

View File

@@ -294,7 +294,7 @@ end
local DemoEnv={
das=10,arr=2,sddas=2,sdarr=2,
drop=1e99,lock=1e99,
drop=60,lock=60,
wait=10,fall=20,
highCam=false,
life=1e99,