Parallaxed / scrolling starfield
Posted: Sat Aug 12, 2017 9:44 pm
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/
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/