Space

It works fine here, I could extract and run it using the batch file no problem (Java 7 on Windows 7).

Looks really cool! I like the exhaust flame effects, the sun (and how your ship heats up and loses shields when near) the planets, and the wormhole looks awesome! Best looking wormhole ever ;D

Some random thoughts:

  • your current setup seems very well suited for an action-like game. Maybe make gravitational pull more intense, make the controls more responsive (i.e. higher ship thrust, faster rotation)
  • having some kind of zoom may be useful to be able to see ahead a bit further when travelling at speed (i.e. going faster = zoomed out further). Alternatively you can make the ship move to the edge of the screen when speeding up so you can see further ahead.
  • at the beginning of a game I get quite big hiccups in the framerate, but after like 30 secs it’s all smooth. I guess this has something to do with the realtime content generation (as some of the hiccups occur right when a planet turns from blue to textured). Maybe completely generate content upon entering a sector to avoid these hiccups?

But overall, looks great and I’m looking forward to what you will make of it :slight_smile:

Thank you very much, The wormhole is actually a particle system, it looks nice, but needs some more tweaking.

The ship is a beginner ship, so its supposed to be kinda slow i guess, but i could make evrything faster so there is more action, good idea.
Zooming is also awsome, im going to implement that.

On my laptop the hicckups were 1 seconds each at first, but after some optimailisation it was more like 50-100 msec, but i didnt take slower systems in account.
I really want to try to load them at realtime, because i dont like loading screens, some more optimizing then :).

I think im going to add colonizing planets, and some ai ships to take with you in the future.
At first im going to try adding enemys (with guns etc), and landing on planets (maybe like the game spore).

I was going to download this game a while ago when you first put the topic up but never got around to it, Just did then, and I like it, the physics is nice, and the wormhole is very nice, I wanted to go through it :frowning:

Is the background stars 3d? or is it just a illusion?

And I did not really drop any frames, at the beginning It felt like it skipped a few frames, but that only happens twice, but it didn’t really pick up on the FPS counter.

Thanks.

Passing trough a wormhole is going to be possible ofcourse, but still something for the future.

Its an illusion, small stars just move slower then big stars, giving this effect.
3D seems not worth it, because it takes more gpu time and has no other use then filling up the black gaps between planets and giving the illusion of moving.
I also want these stars to blur (forming a small line) when the player is flying at high speed, but its hard with my limited knowledge about shaders.

When the texture gets loaded to memory (need to be done on the same thread as rendering) this takes some ms time, and get compensated by the loop itself.
However the loading takes long enough to be noticed (even easyer on slower systems).

New update!

New:

  • Optimized planet generation, should not lag at all.
  • Toggle FPS cap with F1 (dont its bugged).
  • Memory usage is shown on screen.
  • Increased gravitational pull (2x)
  • Shaders!
    • Sun glow is created using a shader, now there is no limit of the width of the glow, its faster and it looks much smoother.
    • Sunbeams are calculated and projected on planets (visible in the image of the planet above).
    • Sun is more alive (color multiplier shifts from 0.9 - 1.5)
    • Antialiastering for the sun, planet and atmosphere.
  • Shooting
  • Added random moon

Download:l Download

Goal of this release is to check if the shaders are working for everyone.
Give some feedback / error dumps if possible :slight_smile:

for me the shading of the sun was just a big orange square under the sun.

Could you upload a picture of it?
And does it show any errors inside the console?

Looked beautiful here :slight_smile:

Keep it up!

Same here. You’re doing an implicit conversion from vec4 to vec3 somewhere. Integrated Intel Ivy Bridge GPU here. Line 0:11 somwhere.

There’s no error returned and it exit’s correctly, I’m using a 6970 on a AMD FX-8150

Well i changed the code a little, so on any error the glow does not get rendered.

Could there be any mistake in the shader? (only started using them some days ago)


uniform float radius;
uniform vec4 c;
varying vec4 screen;

float range;
vec4 color;

void main(void)
{
    range = length(screen.xy);
    color = c;

    if(range < radius){
	    range = clamp(1 - (range / radius), 0, 1);
	    color.w = range * (1 + (0.05 + 0.05 * fract(sin(dot(screen.xy, vec2(12.9898, 78.233)))* 43758.5453)));
    }else{
        color.w = 0;
    }


   gl_FragColor = color;
}


varying vec4 screen;

void main(void)
{
   gl_Position = ftransform();
   screen = gl_Vertex;
}

Works fine for me. Seems really interesting, graphics are well done, planets are realistic and nice, a good start ! ;D

I liked the old spaceship-design better… ::slight_smile:

Yeah it needs some tweaking, but now i have an gun mount and the first ship got to look very simple and rocket alike i think.

This way i can make the storyline like:
Youre the first creature from your homeplanet to leave the planet, so everything is unknown, some story blabla…

Thanks for the comments :slight_smile:

Hey Robin,

I found a GPL (as in: free to use for anything) sprite lib that I’m currently using in my game, in a modified form. Maybe you can use some sprites from that? It’s got some cool space invaders / asteroids style sprites which may suite your space game (or may help you get started).

http://www.widgetworx.com/widgetworx/portfolio/spritelib.html

In the future i want to make ships customizable, i only dont know what or how yet, so i wont use them for my ships.
Planets / astroids are going to be random generated.
Thanks anyways, i guess im going to use some as rockets and enemy’s.
Im currently working on making teh planets more realistic planets + new types.

They seem nice for a stategy game however, maybe i shoud make a stategy game then :wink:
But i guess ill stay with the rpg/shooter game, because there are much stategy games lately.

Can’t you make a jar file instead of a rar? (whatever a rar file is ;D) It only comes up in Notepad on my computer. sigh

Confirmed for troll ::slight_smile:

What is a rar file then? >:(

I also think Space is a good title. :point: :wink: :stuck_out_tongue: :-* :smiley: :slight_smile: