Live data from Hacker News

JavaScript game of Tron in 219 bytes

alokmenghrajani.github.com

21–30 of 54 posts

Re: JavaScript game of Tron in 219 bytes

#21

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.

rules: ...the code need only run on Chrome 17.

Works fine on Chrome. Use it. And read the rules next time. :)

Re: JavaScript game of Tron in 219 bytes

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

Re: JavaScript game of Tron in 219 bytes

#23
post #22

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.

Calling it "Tron" saves a byte ;)

Re: JavaScript game of Tron in 219 bytes

#24

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.

rules: ...the code need only run on Chrome 17. Works fine on Chrome. Use it. And read the rules next time. :)

Woops, my bad! I'll just skip it then...

Re: JavaScript game of Tron in 219 bytes

#26

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.

rules: ...the code need only run on Chrome 17. Works fine on Chrome. Use it. And read the rules next time. :)

Works fine for me on Firefox Nightly too.

Re: JavaScript game of Tron in 219 bytes

#27
post #14

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.

Surely that must have some sort of scaling by default for webpages. Otherwise I would guess nearly all websites appear miniature.

From what I have heard everything is up-scaled to match the native resolution so things that are not optimized for the new displays just looks kinda bad.

Re: JavaScript game of Tron in 219 bytes

#30
post #22

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.

In the classic Snake game, the tail of the snake moves and the snake grows longer when you eat snakefood. In Tron, the light trail stays there and you try close in your opponents. So this game is definitely Tron, not Snake.

Tron is usually a multiplayer game and the speedup next to light trail you mentioned is missing.

Btw. back in the BBS days there was a Finnish freeware Tron-with-weapons game called "DeLuxe Moposota" (rough translation: moped wars). I have very nice memories of it. It works nicely DosBOX. Here's a youtube clip: http://www.youtube.com/watch?v=Gozt-1BgVrU

Post reply on HN