From 0372fc18ee13694adffac1d6c9f1a7aae7e9380d Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 7 Dec 2020 12:14:30 +0800 Subject: [PATCH] =?UTF-8?q?cubefield=E8=B0=83=E6=95=B4=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E9=80=9F=E5=BA=A6=EF=BC=8C=E5=90=8E=E5=8F=B0=E4=B8=8D=E8=AE=A1?= =?UTF-8?q?=E5=88=86=EF=BC=8C=E6=96=B9=E5=90=91=E7=BA=BF=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E5=86=8D=E5=87=8F=E6=B7=A1=EF=BC=8C=E4=BD=9C=E8=80=85=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E5=8E=9F=E5=90=8D=EF=BC=8C=E6=94=B9=E6=AD=A3=E4=BD=9C?= =?UTF-8?q?=E8=80=85=E6=A0=87=E6=B3=A8=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/mg_cubefield.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/parts/scenes/mg_cubefield.lua b/parts/scenes/mg_cubefield.lua index 1c2adb0c..82498bb6 100644 --- a/parts/scenes/mg_cubefield.lua +++ b/parts/scenes/mg_cubefield.lua @@ -29,6 +29,8 @@ local menu,ct,play local score local sunH,color,rot +local drawn=false + local function near(o,t) return o>t and max(o-.01,t)or o0 then inv=inv-1 end - score=score+dt*.03+life/2000 + score=score+dt*.04+life*.0004 life=min(life+dt*.04,1000) if score>1000*level then if speed<3 then speed=speed+.2 end @@ -187,6 +192,7 @@ function scene.update(dt) end function scene.draw() + drawn=true --Health bar if life1>0 then gc.setColor(1,0,0) @@ -215,7 +221,7 @@ function scene.draw() --Draw direction if play then gc.setLineWidth(3) - gc.setColor(1,1,1,.2) + gc.setColor(1,1,1,.1) gc.polygon("fill",-15,30,0,-440,15,30) end @@ -268,7 +274,7 @@ function scene.draw() gc.setColor(1,1,1) gc.rectangle("fill",-20,-20+ct,40,40) - gc.setColor(1,1,1,(1-ct/60)*.2) + gc.setColor(1,1,1,(1-ct/60)*.1) gc.polygon("fill",-15,30,0,-440,15,30) gc.setColor(1,1,1,ct/60) @@ -278,7 +284,7 @@ function scene.draw() setFont(20) gc.print("Original game by Max Abernethy",40,-550) - gc.print("Original CX-CAS version by Par Loic Pujet",40,-525) + gc.print("Original CX-CAS version by Loïc Pujet",40,-525) gc.print("Ported / Rewritten / Balanced by MrZ",40,-500) setFont(45)