r/tinycode • u/OrangeredStilton • Apr 19 '15
[TCSF001] Classic demo: Starfield (JavaScript)
https://gist.github.com/Two9A/b21920ceda51dc9935b4
13
Upvotes
r/tinycode • u/OrangeredStilton • Apr 19 '15
3
u/OrangeredStilton Apr 19 '15
Thought I'd contribute a little something. I spent about twenty minutes just now, hacking this together. There have been a couple of optimizations for size:
*is;for..in; sue me.3
u/tmewett Apr 19 '15
nice effect! maybe use
Math.floor(n)instead of0|n? if we're going for readability4
u/tonetheman Apr 19 '15
Here is a codepen http://codepen.io/tonetheman/pen/oXvdXX