A starfield effect, inspired by the old Windows screensaver, though the style is more in line with Star Trek. Use up and down to increase and decrease speed, and press X to show stats.
I used nucleartide's Pico-8 snippets, specifically vec3 and pline(), to do the 3D projection. I was encouraged by reinvdwoerd's Perspective Lines and used his cartridge to figure out how to use pline().
To really get immersed, shout "increase speed to [warp number]!" as you hold the up key or "all stop!" as you slow down to zero.
@a2 You're free to use it however you want, no credit necessary, and I promise I won't sue! I just selected Pico-8's default licensing option, figuring it's better than nothing at all. I don't know how to license it with the MIT license, other than hosting it on Github.
Besides, I don't think my code is original enough to warrant it; plenty of people have done 3D starfields before, and nucleartide's stuff is doing the heavy lifting here.
Also, if you wait a day or two, I'm working on a tweet-length cart that does a 3D starfield with much fewer characters, possibly making it easier to drop into whatever you're working on.
@PicoLate In addition to my original praise for this effect on Twitter - I did have a suggestion for your consideration that may improve the effect even more?
What if the stars start out, briefly, at color 1 (dark blue)?
I think it may make their appearance from the depths of space even smoother than they already are.
Anyway - just a thought! ;-)
@Liquidream I think I tried starting the colors out at blue, but rejected it for some reason. Maybe it didn't look as nice as I expected, but I'll try it again. You'll notice that I made a mistake with the colors in this starfield. The stars are supposed to go from dark grey to grey to white, but at some point I got them mixed up and they go from dark grey to white to grey! Fixing this should make the stars feel smoother.
[Please log in to post a comment]