Log In  


This was just a small idea I had that I wanted to see in the wild. I currently have no intention of developing it into a game.

However my tweet seems to have got a bit of attention so I thought I may as well post it here in case anyone wanted anything from it.

Up or Z to thrust, left and right to rotate.

Cart #57848 | 2018-10-12 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

5


That loop to draw the trail should probably use a while instead of a for, to save it having to loop over 40 stars with no trails... e.g:

local i=1
while stars[i].depth>0.5 do
 line(
  stars[i].x,
  stars[i].y,
  stars[i].x+p.dx*abs(p.force)/3*stars[i].depth,
  stars[i].y+p.dy*abs(p.force)/3*stars[i].depth,
  stars[i].col2
 )
 i=i+1
end

(as long as you're not going to add in stars at random depths)


Nice! I may use this for a future multicart game I have planned....



[Please log in to post a comment]