Space prototype thing

This work-in-progress (the bastard offspring of the Community Project from earlier in the year) might one day become a ‘Space’ game.

Click and hold with the mouse to turn. Click and hold inside the targetting circle to move forward.

I haven’t had much experience with OpenGL (JOGL2 specifically) so feel free to tell me of any errors or glitches. Also, I haven’t made any attempt to optimize the code at this stage, so my apologies if it’s really slow on some hardware. (Frames-per-sec and other debug information appears in the Java console window if that’s open.)

Any feedback welcome.

Simon

Update: The original version may crash on some machines. This version should be more reliable, but it may run a bit slower.

Update 2: Source code (uses JOGL2).

Webstart fails to launch.

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
	at javax.media.opengl.awt.GLCanvas.<clinit>(GLCanvas.java:78)
	at Space.MainWindow.<init>(MainWindow.java:120)
	at Space.MainWindow.main(MainWindow.java:41)
	... 9 more
Caused by: javax.media.opengl.GLException: No profile available: [GL2, GL2ES2, GL2ES1, GLES2, GLES1, GL2GL3, GL3]
	at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:750)
	... 12 more

Same here… :-\

Worked here, great graphics. Very nice and soft and anti-aliased. Planets look cool, coming along nicely 8)

I hate computers.

Okay, assuming that the error message is pointing the finger at my use of GLProfile, I’ve cut-and-pasted bits of code at random from the JOGL2 demos. And moved some of the lines of the JNLP file around for good measure.

Maybe it will work now. And maybe it won’t.

Either way, thanks for giving it a go.

Simon

[quote=“dishmoth,post:5,topic:34441”]
:-\ It now briefly opens a blank window then just crashes out…

the same here

Works for me now :smiley:

Ah, well that’s a great improvement. :stuck_out_tongue:

I can’t think of any other loose connections to wiggle at the moment. I’ll have to try debugging on a different machine.

Sorry for the inconvenience.

Simon

It works fine for me. Looks totally awesome! Sort of Frontier-ish. Keep it up!

Update seems to run without a pause for both logic and graphics.

works great for me, nice work.

Works fine - no glitches or pauses. Good work!

I’m not sure what you mean by this. Is the application hogging the CPU? (I’m using the Animator class in the same way that the JOGL demos do, and I assume that that’s yielding as necessary.)
Simon

Debugging the old-fashioned way…
I’ve added some extra output statements to the code. If anyone can tell me the last line to appear in the Java console window before the crash then I’ll be one (tiny) step closer to fixing the problem.
Thanks,
Simon

Cpu at 100% and Gpu at 99% which means that the built in timing doesnt work.

Ah, okay. Thanks for the feedback.

I’ll see if I can do anything to fix that. (The Animator class does seem to be yielding regularly, but maybe there’s something else I’m doing wrong.)

Thanks
Simon

works well for me as well (win xp 32bit java 1.6.0_13)

not too sure about the control interface, but i guess it is something to get used to :stuck_out_tongue:

Looks very nice! i dont think i would want to be on those planet spinning that fast tho… would get flung off!

Works here. (Win7, 64bit)

I really like. :slight_smile: Get some basic trading, combat, and upgrading, and I dare say you’ll have a fun little space game on your hands! I really like the looks of it so far so keep going!

Thanks for the comments. It’s okay, the aliens have very sticky feet!

I like seeing lots of spinning planets all bunched up together. If the Laws of Physics don’t like it, they can find some other game to bother. ::slight_smile:

Simon