Page 1 of 1

Parallaxed / scrolling starfield

Posted: Sat Aug 12, 2017 9:44 pm
by unixfreak
Here's a scrolling starfield, probably useful for side scrolling space shooters (all CC-BY-SA / GPL), most of the image assets are from opengameart :awesome:

There are 4 object types which are spawned randomly based on a seed:
- Nebulae
- Planet
- Star
- Nova

Some screenshots here:

Image Image Image Image Image Image Image Image


Feel free to reuse the code in your own games/projects if it's of any use, but really asking for some feedback in terms of whether anyone likes this effect for generating a background scene.

Press [ or ] to change scroll speed, or press J to reseed the starfield. :

Also please note it is only optimized for 1920x1080 fullscreen, it may look odd on any other resolution (sorry about that).

I have been slowly working on a game using this here (although i haven't got very far with it as of yet):
https://github.com/Jigoku/starphase/

Re: Parallaxed / scrolling starfield

Posted: Thu Aug 31, 2017 7:49 am
by xNick1
That looks great!
Wonderful job, man!

Re: Parallaxed / scrolling starfield

Posted: Fri Sep 01, 2017 2:39 pm
by Beelz
Image

Re: Parallaxed / scrolling starfield

Posted: Sat Sep 02, 2017 5:09 am
by Mutos
Hi unixfreak,


Nice ! NIce ! Nice !

I keep it preciously and will remember to ask you for advices if I ever want to include a starfield in a game (which will eventually happen one day) !

Re: Parallaxed / scrolling starfield

Posted: Fri Sep 08, 2017 2:28 pm
by varpeti
What a nice job, man!
Image

Re: Parallaxed / scrolling starfield

Posted: Fri Sep 08, 2017 6:04 pm
by steVeRoll
Very beautiful and atmospheric! (no pun intended :P )
Great work!