Log In  
Log In  

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.

Cart [#starfield-0#] | Code | 2019-02-16 | License: CC4-BY-NC-SA | Embed
3

P#61959 2019-02-16 22:46

:: a2

Great stuff!

P#61980 2019-02-17 13:59
:: a2

@PicoLate I'd love to do something similar to this in my game. Would you mind relicensing this code under something more permissive, like the MIT license that nucleartide/pico-snippets is under?

P#61982 2019-02-17 14:24
1

@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.

P#62009 2019-02-18 02:27
:: a2

@PicoLate Sure, that makes sense. All good :) Looking forward to your tweet-length cart :)

P#62025 2019-02-18 08:54
1

@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! ;-)

P#62030 2019-02-18 14:54
1

@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.

P#62039 2019-02-18 17:03

@PicoLate Fair enough.
(And didn't notice the bug - but yeah, that should help too!)

P#62041 2019-02-18 17:08

@PicoLate I love the effect, nice job!

P#62044 2019-02-18 20:29

[Please log in to post a comment]

X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-03-21 22:28 | 0.072s | 4194k | Q:43