3 ms·
Very cool. I notice that many ships tend to get stuck on the edge of the map though. Maybe make it so they loop back around to the other side of the map?
by NathanKP 12y ago
Very cool. I notice that many ships tend to get stuck on the edge of the map though. Maybe make it so they loop back around to the other side of the map?
- Terr_ 12y ago> Maybe make it so they loop back That's be a toroidal spacetime surface, wouldn't it? Would gravitational influence also have to "loop around" the borders? If not, you might get some very interesting effects if a mass is near the edge of the map.
- simonswain 12y agoThanks. Yeah, there are a couple of glitches in there. The ships bounce off the edge of the screen, and smaller ships run from bigger ones -- combined, that makes them crawl along the sides. Looping around is a good idea, or I'm wondering if there could be some kind of log scale to distance the further out from the centre the ships get. I did a variation a while back with a star in the middle that could be tweaked for that (click to add a ship). Mind you, the gravity from the star pretty much takes care of that problem. http://codepen.io/simonswain/full/cKejC/ http://codepen.io/simonswain/full/cKejC/