00ޝu8L]$4L 44;]AsVl3$> 00  00ppp 0p p`     P-- title: starfield -- author: Dr.Terrorz -- desc: A bunch of stars -- site: website link -- license: MIT License -- version: 0.1 -- script: lua stars = 200 posx = {} posy = {} posz = {} function repos(p) posz[p]=1600 posx[p]=math.random(1,2000)-1000 posy[p]=math.random(1,1600)-800 end function rndizer() local p for p=1,stars,1 do repos(p) posz[p]=math.random(1600) end end function pts(x,y,z) if z<0 then return end local dd=(100+z)/50 local xx=x/dd local yy=y/dd pix(120+xx,56+yy,dd//4) end rndizer() sc=1 function TIC() -- if btn(0) then y=y-1 end -- if btn(1) then y=y+1 end -- if btn(2) then x=x-1 end -- if btn(3) then x=x+1 end cls(0) for i=1,stars,1 do pts(posx[i],posy[i],posz[i]) posz[i]=posz[i]-16 end sc=sc+1 if sc>stars then sc=1 end if posz[sc]<0 then repos(sc) end end