Log In  


Star Field (2018)

(197 chars)

s,r={},rnd
for i=1,100 do
add(s,{x=r(128),y=0,v=r(6)+3})
end
::_::
cls()
for k,v in all(s) do
if (k.y<128) k.y+=k.v else k.x,k.y,k.v=r(128),0,r(6)+3
line(k.x,k.y,k.x,k.y-k.v/2,7)
end
flip() goto _

1


I tried this cart and wonder if I'm doing something wrong. All I get is a few flashing pixels at the top of the screen.


@Minion Think it may have been a spacing issue! I revised the code section and it seems to be working now. :)



[Please log in to post a comment]