4 ms·
I did something similar, but with combat - ships, lasers and missiles. There are a couple of variations, and some tweaks like the ships accelerating perpendicu
by simonswain 12y ago
I did something similar, but with combat - ships, lasers and missiles.
There are a couple of variations, and some tweaks like the ships accelerating perpendicular to the planets so they don't crash land.
http://codepen.io/simonswain/full/ftEjD/ http://codepen.io/simonswain/full/ftEjD/
http://codepen.io/simonswain/full/CeHmh/ http://codepen.io/simonswain/full/CeHmh/
- moron4hire 12y agoThat is really cool.
- jonifico 12y agoThat was great. COngrats!
- omikun 12y agoAmazing! I have a non-combat version in 3d. Now I know what mine is missing. https://www.youtube.com/watch?v=73O8aDN41sU https://www.youtube.com/watch?v=73O8aDN41sU
- NathanKP 12y agoVery 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/