JS1k demo: “Highway at Night”
js1k.com
JS1k demo: “Highway at Night”
1–10 of 100 posts
Re: JS1k demo: “Highway at Night”
#2For best musical accompaniment to this, I recommend Stage7's "8-bit Mentality"[0].
Re: JS1k demo: “Highway at Night”
#3The making of "Highway at Night": http://jsriffs.blogspot.fi/2014/05/making-of-highway-at-nigh...
Re: JS1k demo: “Highway at Night”
#4Wow. I can make sense of a little bit of the original source, but I wonder more how RegPack [0] works to compress it into that final submission!
As a side note: I'm in college now and looking to propose an independent study on compression. Any suggested readings or algorithms I should look into?
Re: JS1k demo: “Highway at Night”
#5You can see all the submissions at http://js1k.com/2014-dragons/demos
My favorite: http://js1k.com/2014-dragons/demo/1868
Re: JS1k demo: “Highway at Night”
#6How does this loop work ?Does this create an array where B,F,Z,D and i are 0?
for(T=[B=F=Z=D=i=0];i<600;i++)
Re: JS1k demo: “Highway at Night”
#7This demo gives some ideas about how the human brain manages to remember events. With just a few lines of code, containing very little information, it generates something we perceive as a very detailed record of a highway trip at night. Even if we don't know exactly what tricks the human brain uses to compress information about places and events, this demo let's us imagine how some of it might be done.
The human brain is a master at recognising and codifying geometric 3d shapes. The developer who created this is a master at coding geometric shapes and transitions in javascript as well.
Re: JS1k demo: “Highway at Night”
#8How does this loop work ?Does this create an array where B,F,Z,D and i are 0? for(T=[B=F=Z=D=i=0];i<600;i++)
The loop first sets B, F, Z, D and i all to zero. Then it sets T to a new array containing one element, zero.
The key here is that = is a right-associative expression operator which yields the right operand.
Re: JS1k demo: “Highway at Night”
#9How does this loop work ?Does this create an array where B,F,Z,D and i are 0? for(T=[B=F=Z=D=i=0];i<600;i++)
I would say: T is an array containing one element which is zero.
Re: JS1k demo: “Highway at Night”
#10This is so very impressive. I like how it uses canvas to make the moon:
// Moon
c.fillText("(",99,-99);