ÎÌÌÌ̈ˆˆ¬ªªª¬ˆˆˆ¬ÌÌ̬ÌÀ̬ÌÀ̬ÌÀÌÌÌìÌÀÀî̬ÀÌÀ¬ÀÀÀ¬ÀÀÀ¬ÀÀÎÌÌÌ̈ˆˆ¬ªªª¬ˆˆˆ¬ÌÌ̬ÌÌ̬ÌÀ̬ÌÀÌÌÌìÌÀÀî̬ÀÌ̬ÀÀÀ¬ÀÀÀ¬ÀÀ¬ÌÌ̬ªªª¬ª¬ª¬ªÊ̬ªªªŒˆˆˆÌÀÌÎÌÌÎ̬̪ªÀ쬪ÀÀÀÌîÀìîÌÌîî¬ÌÌ̬ªªª¬ª¬ª¬ªÊ̬ªªªŒˆˆˆÌÀÌÎÌÌÎ̬̪ªÀ쬪ÀÀÀÌîÀìîÌÌîî >>&À À ÀÀÀ ÀÀÀÀÀ ÀÀ ÀÀ ÀÀÀ À ª    À À    ª²-- title: Plaet Atraction -- author: Lorenzo_HFJ -- desc: drag the blue plnet around with mouse -- script: lua ob1={ x=120, y=63, r=4, m=8000 } ob2={} for i=1,10 do ob2[i]={ r=1, x=math.random(2,239-2), y=math.random(2,135-2), ax=0, ay=0, sx=0, sy=0, m=0.75 } end function draw() circb(ob1.x,ob1.y,ob1.r,10) for i=1, #ob2 do circb(ob2[i].x,ob2[i].y,ob2[i].r,12) end end function dist(x1,y1,x2,y2) distX=x1-x2 distY=y1-y2 return math.sqrt((distX*distX)+(distY*distY)) end function simulate() for i=1, #ob2 do if (dist( ob2[i].x, ob2[i].y, ob1.x, ob1.y)