Hacker News

Hacker News

Show HN: Newton Wars – Fight your friends and planetary gravity (newtonwars.wipgames.dev)
2 points by neuling •                         
neuling •                         
Years ago I started building a game I had seen at a conference, played over telnet: you type an angle and a power, and the planets bend your shot.

I finally found the time to finish it with the help of AI. The basics, like the physics, were already there. Now it has nicer graphics and runs in the browser, on desktop and mobile.

Happy about any feedback, and glad to add more features.

gus_massa •                         
Are you stimulating gravity from all the planets, or do you use only the nearest one?
neuling •                         
Actually all of them. Every step adds up the pull of every planet at the rocket’s current position. Realistic gravity made shots feel unfair, too weak a falloff made them feel floaty. I tried a few versions before landing on something in between.
gus_massa •                         
I'm not sure what you mean.

Are you using F = m * M / r^2 with and tweaked the value of M until it look right?

Or you changed the 2 in the exponent?

Some parts of the trajectories in the demo look weird for plain mM/r^2