Live data from Hacker News

JavaScript game of Tron in 219 bytes

alokmenghrajani.github.com

31–40 of 54 posts

Re: JavaScript game of Tron in 219 bytes

#35
post #4

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: http://micahw.com/tron.html (221 bytes). 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 initially thought it was a cool way to "bend the rules" and save a few bytes, but lots of people told me the same thing! In hindsight I would have instead changed our rules to disallow this :)

Re: JavaScript game of Tron in 219 bytes

#40
post #10

I think I see a way of shaving another byte: instead of "0 My goal is to shave 2 bytes, so you can change the key handler back to onkeydown. :P

There are 5 possible collisions: top edge, left edge, right edge, bottom edge and the tail.

Your proposal does not cover the top edge.

Post reply on HN