Hacker News new | past | comments | ask | show | jobs | submit login
Missile Command in less than 1k of JavaScript (js1k.com)
86 points by michalmarko on Sept 6, 2010 | hide | past | favorite | 19 comments



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


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


Incredible.


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


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.


You may like these AS3/Browser JS benchmarks: http://jacksondunstan.com/articles/712


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.


I made a neat roguelike in JS last week but couldn't fit it in under 4K :(


I made a truly marvelous proof of Fermat's Last Theorem in Javascript. 1k is too small to contain it.



If you allow that kind of thing I can make some excellent games in a few bytes of Javascript!


I bet you can't make Duke Nukem Forever in JS that way.


even shorter:

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

;)


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!


Update: I'm down to 2.85K. I might just get there.


have you passed it through jsmin and/or closure compiler?

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

<poke>


The 2.85K is after Closure :-/


I miss the dew-dew-dew-dew sounds, lol.


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




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: