圆角圆角圆角圆角圆角

This commit is contained in:
MrZ626
2021-08-08 00:02:07 +08:00
parent a2f0142712
commit 5f8cbe524e
11 changed files with 62 additions and 64 deletions

View File

@@ -78,10 +78,10 @@ function scene.update()
if P.y0 then
if P.y>P.y0 then
P.y=max(P.y-8,P.y0,70)
P.vy=-8
P.vy=-10
elseif P.y<P.y0 then
P.y=min(P.y+8,P.y0,650)
P.vy=8
P.vy=10
else
P.vy=P.vy*.5
end
@@ -154,9 +154,9 @@ function scene.draw()
--Draw boundary
gc.setColor(COLOR.Z)
gc.setLineWidth(6)
gc.line(130,20,1160,20)
gc.line(130,700,1160,700)
gc.setLineWidth(4)
gc.line(134,20,1146,20)
gc.line(134,700,1146,700)
--Draw ball & speed line
gc.setColor(1,1,1-abs(ry)*.16)
@@ -166,9 +166,9 @@ function scene.draw()
--Draw pads
gc.setColor(1,.8,.8)
gc.rectangle('fill',130,p1.y-50,20,100)
gc.rectangle('fill',134,p1.y-50,16,100)
gc.setColor(.8,.8,1)
gc.rectangle('fill',1130,p2.y-50,20,100)
gc.rectangle('fill',1130,p2.y-50,16,100)
end
scene.widgetList={