Space Simulation (with gravity n stuff)

http://img.keraj.net/1831698112.jpg

Applet link: http://dev.keraj.net/space/
(hopefully should work on all systems)

What is this?

I’ve been playing with simulating solar system with box2d. So far I’ve got earth and moon working more or less. There are more planets, but they are out of precision range now. (at least rendering wise, I use double for physics)

This is totally work in progress. Finally world should be chunked a little maybe… it’s intended for multiplayer.

How to play?
Hit Space (or X) to start rocket… when detatched, steer left and hold W to escape the gravity pull. Try to land on the moon. Don’t hit the moon too hard though, or you will crash. Then try to get back on Earth - this is a hard task.

Collaboration?
I don’t really want to work on a game by myself. Some of you guys here also make space related games and I think maybe someone would like to join forces?

The webpage looks sexy and the applet looked cool when it was loading, but…
I got a null pointer exception :frowning:

java.lang.NullPointerException
at lol.c.c(SpaceApp.java:522)
at lol.c.render(SpaceApp.java:456)
at net.keraj.SpaceMain.render(SpaceMain.java:68)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:204)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:112)

That’s weird, but it seems like your card doesn’t support OpenGL 2.1+ or at least LibGDX failed at detecting it. I added some debug, would you copy the output when it shows?

It should work now, try again.

Pretty awesome simulation!
Took me a little while to navigate through the learning curve, but after that, it was fun :smiley:

Keep it going mate, I wish you luck!

Man, I loved it! It was so enjoyable playing this. Please make more. I cannot express how much I love this game. :slight_smile: Good job!
The thing I really liked about this game was that it doesn’t tell you the rules and you just have to figure it out on your own.
I only had one problem: the restart key R. I kept accidentally pressing ‘r’ key when trying to toggle between trajectory and speed display. I killed my game couple of times that way so I physically removed the key from my keyboard LOL. It would be really useful if you could change the way you restart game. Maybe a confirmation box pops up if haven’t crashed?