From b11e5e12d390048822e66349c8c910c0f474c9fd Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 7 May 2021 02:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E4=BC=9A=E4=BB=8E=E5=90=84?= =?UTF-8?q?=E4=B8=AA=E6=96=B9=E5=90=91=E5=87=BA=E7=8E=B0=E5=B9=B6=E4=B8=94?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E9=AB=98=E5=BA=A6=E8=AE=BE=E4=B8=BA=E4=B8=B4?= =?UTF-8?q?=E7=95=8C=E5=80=BC=EF=BC=8C=E8=BF=9B=E6=88=BF=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E7=9C=8B=E5=88=B0=E5=AD=97=E5=8F=B7=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/netPlayer.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/parts/netPlayer.lua b/parts/netPlayer.lua index 8f77a3bc..f1f05b09 100644 --- a/parts/netPlayer.lua +++ b/parts/netPlayer.lua @@ -1,5 +1,7 @@ local gc=love.graphics -local max,min=math.max,math.min +local rnd,min=math.random,math.min +local sin,cos=math.sin,math.cos + local ins,rem=table.insert,table.remove @@ -88,7 +90,8 @@ end function netPLY.clear()for _=1,netPLY.getCount()do rem(PLY)end end function netPLY.add(p) ins(PLY,p.uid==USER.uid and 1 or #PLY+1,p) - p.x,p.y,p.w,p.h=2600,2600,0,0 + local a=rnd()*6.2832 + p.x,p.y,p.w,p.h=640+2600*cos(a),360+2600*sin(a),47,47 freshPosList() end function netPLY.remove(sid)