News for hackers. Stuff that matters.
Re:Missile Command in less than 1k of JavaScript by user24 on Monday September 06, 2010 @05:38AM (#1666337)
The whole of the js1k contest has been fascinating to watch. Some truly amazing demos. Some of my favorites so far:

3d terrain: http://js1k.com/demo/448

pulsing beams: http://js1k.com/demo/171

heatmap: http://js1k.com/demo/156

DOM3d: http://js1k.com/demo/326

What I really like are the tweet-sized entries though. So much so in fact that I'm donating a copy of JS:TGP as a prize for the best <=140 byte entry :)

Here are my entries to date: http://www.puremango.co.uk/2010/08/some-tweetable-js1k-demos...

Re:Missile Command in less than 1k of JavaScript by arethuza on Monday September 06, 2010 @06:31AM (#1666396)
The real life US missile defense systems was pretty awesome - particularly the Sprint missile (0 to Mach 10 in 5 seconds!):

http://en.wikipedia.org/wiki/Sprint_%28missile%29

Video of a Sprint intercepting a RV:

http://www.youtube.com/watch?v=YZZV464z9g8

Re:Missile Command in less than 1k of JavaScript by jsvaughan on Monday September 06, 2010 @08:45AM (#1666532)
Incredible.
Re:Missile Command in less than 1k of JavaScript by bd on Monday September 06, 2010 @10:22AM (#1666728)
It was recently updated (colors and anti-missile-spam feature):

http://js1k.com/demo/670

Also cool to see other HNers participating (I made two 1K demos and one tweet).

Some of my favorites (not mentioned yet):

Wobbling tunnel: http://js1k.com/demo/15

Quaternion Julia raymarcher: http://js1k.com/demo/49

Twister: http://js1k.com/demo/213

3d snowman: http://js1k.com/demo/224

Hypnotic patterns: http://js1k.com/demo/266

Cute cartoonish platformer: http://js1k.com/demo/635

Re:Missile Command in less than 1k of JavaScript by dkersten on Monday September 06, 2010 @09:07AM (#1666566)
Some pretty impressive demos there and I like the HTML5 buzz too, but, as much as I dislike Flash, its still a bazillion times faster on most browsers at the moment. It'll get there in time though.
Re:Missile Command in less than 1k of JavaScript by simon_kun on Monday September 06, 2010 @10:15AM (#1666707)
You may like these AS3/Browser JS benchmarks: http://jacksondunstan.com/articles/712
Re:Missile Command in less than 1k of JavaScript by arethuza on Monday September 06, 2010 @12:37PM (#1666946)
Those tests don't seem to include anything graphical - Flash has a lot of higher level graphics stuff that you would have to implement yourself if you were using Canvas.
Re:Missile Command in less than 1k of JavaScript by wlievens on Monday September 06, 2010 @06:12AM (#1666377)
I made a neat roguelike in JS last week but couldn't fit it in under 4K :(
Re:Missile Command in less than 1k of JavaScript by tome on Monday September 06, 2010 @06:21AM (#1666391)
I made a truly marvelous proof of Fermat's Last Theorem in Javascript. 1k is too small to contain it.
Re:Missile Command in less than 1k of JavaScript by hitonagashi on Monday September 06, 2010 @09:12AM (#1666571)
Re:Missile Command in less than 1k of JavaScript by tome on Monday September 06, 2010 @09:21AM (#1666587)
If you allow that kind of thing I can make some excellent games in a few bytes of Javascript!
Re:Missile Command in less than 1k of JavaScript by wlievens on Monday September 06, 2010 @10:27AM (#1666732)
I bet you can't make Duke Nukem Forever in JS that way.
Re:Missile Command in less than 1k of JavaScript by user24 on Monday September 06, 2010 @11:38AM (#1666854)
even shorter:

location='http://www.jstor.org/pss/2118559

;)

Re:Missile Command in less than 1k of JavaScript by wlievens on Monday September 06, 2010 @07:44AM (#1666461)
That's the most multi-layered comment I've ever read. I'm not sure how to respond :-)

I've brought it down to 3.24k in the meanwhile. Maybe I'll get there eventually!

Re:Missile Command in less than 1k of JavaScript by wlievens on Monday September 06, 2010 @10:29AM (#1666736)
Update: I'm down to 2.85K. I might just get there.
Re:Missile Command in less than 1k of JavaScript by user24 on Monday September 06, 2010 @11:39AM (#1666856)
have you passed it through jsmin and/or closure compiler?

You must be able to get it into a 'k ;)

<poke>

Re:Missile Command in less than 1k of JavaScript by wlievens on Monday September 06, 2010 @03:53PM (#1667287)
The 2.85K is after Closure :-/
Re:Missile Command in less than 1k of JavaScript by ck2 on Monday September 06, 2010 @10:29AM (#1666737)
I miss the dew-dew-dew-dew sounds, lol.
Re:Missile Command in less than 1k of JavaScript by konad on Tuesday September 07, 2010 @07:59AM (#1668641)
Not Quite Missile Command :)

I know it pretty well as I'm friends with Bill Carlton - the guy that's tried to beat the Missile Command high score a few times. The game isn't as straight forward as you might think, there's a game crashing bug for instance which has burned Bill twice now at 40 hours+

http://www.highscoremovie.com/

Watching Missile Command is pretty fascinating. I watched Bill's last attempt live as it streamed it on Justin.tv