From 4a2d13c6d71eb956a856aa6d5f4986f010a331c3 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 20 May 2021 14:21:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E5=BC=80=E5=B1=80=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E8=8B=A5=E5=B9=B2next=E6=97=B6=EF=BC=8C=E5=80=92?= =?UTF-8?q?=E8=AE=A1=E6=97=B6=E6=95=B0=E5=AD=97=E9=A2=9C=E8=89=B2=E5=92=8C?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E6=A0=B7=E5=BC=8F=E7=95=A5=E6=9C=89=E4=B8=8D?= =?UTF-8?q?=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/draw.lua | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 99f4036b..6caf72ee 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -439,13 +439,23 @@ local function drawMission(P) end end end -local function drawStartCounter(count) - gc_setColor(1,1,1) +local function drawStartCounter(P) + local count=179-P.frameRun gc_push('transform') - gc_translate(305,220) - if count%60>45 then gc_scale(1+(count%60-45)^2*.01,1)end - setFont(95) - mStr(int(count/60+1),0,0) + gc_translate(300,300) + if P.gameEnv.initSkip then + gc_setColor(.6,.8,1) + if count%60>45 then + gc_rotate((count%60-45)^2*.00355) + end + else + gc_setColor(1,1,1) + if count%60>45 then + gc_scale(1+(count%60-45)^2*.01,1) + end + end + setFont(100) + mStr(int(count/60+1),0,-70) gc_pop() end @@ -716,7 +726,7 @@ function draw.norm(P) if P.life>0 then drawLife(P.life)end drawMission(P) - if P.frameRun<180 then drawStartCounter(179-P.frameRun)end + if P.frameRun<180 then drawStartCounter(P)end gc_pop() end function draw.small(P)