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
There are 4 object types which are spawned randomly based on a seed:
- Nebulae
- Planet
- Star
- Nova
Some screenshots here:
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/
Parallaxed / scrolling starfield
Parallaxed / scrolling starfield
- Attachments
-
- starfield-0.02.love
- (11.77 MiB) Downloaded 338 times
Re: Parallaxed / scrolling starfield
That looks great!
Wonderful job, man!
Wonderful job, man!
Re: Parallaxed / scrolling starfield
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) !
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) !
Benoît 'Mutos' Robin
Hoshikaze 2250, Sci-Fi universe in collaborative writing
Hoshikaze 2250, Sci-Fi universe in collaborative writing
Re: Parallaxed / scrolling starfield
Very beautiful and atmospheric! (no pun intended )
Great work!
Great work!
Who is online
Users browsing this forum: Ahrefs [Bot], RetroKevin and 3 guests