It's unfortunate that they decided to save 2 bytes by using onkeyup instead of onkeydown. That choice makes the game nearly unplayable for me. Compare the version in the demo to the one here: <a href="http://micahw.com/tron.html" rel="nofollow">http://micahw.com/tron.html</a> (221 bytes).<p>In any case, this is really impressive. It's always fun to see the tricks people employ to get these tiny sizes (smaller than this comment!).
I think I see a way of shaving another byte:<p>instead of "0<x%n&", you should be able to do "x%n&&". Works for me on Chrome.<p>My goal is to shave 2 bytes, so you can change the key handler <i>back</i> to onkeydown. :P
Is this supposed to be Tron or Snake? I distinctly remember Tron being a multiplayer game, with the mechanics such that moving along a wall or trail increases your speed, putting you in position to cut off the other players and make them crash.
I would save 2 bytes by changing<p><pre><code> n=150,x=11325
</code></pre>
to<p><pre><code> n=632,x=1e6 (or similar)
</code></pre>
This increases the board size to 632x632 and saves 2 bytes, which can be used to use <i>onkeydown</i>.<p>I suppose you only start approximately in the center, though.
Here's a question for you: how will this look on the new Mackbook Pro with Retina Display ? The tron line is 1px wide, and on that computer's screen the one pixel is too small to see.
It's really cool to see how you've come up with tron in just 219b.<p>You mention saving 11 bytes, bringing the total to 212. Then another 9 (seemingly making it 203). But go on to say you saved 2 more bytes, making it 219. I'm confused.
I can't see the white line in my browser, just a square of black. I know it's working because I get "game over" if I start the game with i, j, k or l. I'm on Firefox 14.0. Do fix it.
beautiful.<p>i once participated in a similar competition only that it was in x86 Assembly, my friends and I brought it down to 70 bytes and the winner from Finland did it in 48!<p><a href="http://myweb.cableone.net/benlunt/hugi/compoold.htm#compo1" rel="nofollow">http://myweb.cableone.net/benlunt/hugi/compoold.htm#compo1</a>