Live data from Hacker News

Show HN: Snaketron, online multiplayer Snake

snaketron.com

1–10 of 56 posts

Re: Show HN: Snaketron, online multiplayer Snake

#4

Pretty cool, but the fact that you have to account for latency sucks. Is there a way to make movement purely client-side?

Thanks! I actually spent the majority of my time fixing latency issues. The movement actually is mostly client side, but I have to sync positions sometimes. With purely client side movement many issues arise like one snake lagging behind the other one due to rendering being slower on one computer, a snake turning a block too late on one browser because it gets the signal later, .. things like that. So I just sync positions when it matters.

Re: Show HN: Snaketron, online multiplayer Snake

#5
post #3

It's great how you can use spacebar to start a new game, definitely fuels the addictive/impulsive play. Unfortunately the cycle is broken everytime I have to take my hand off the keyboard and use the mouse at the Game Over prompt.

Lol that actually occurred to me. I had some issues with hotkeys but I think I might figure it out and add that, now that a few people have mentioned it already :)

Re: Show HN: Snaketron, online multiplayer Snake

#8
post #3

It's great how you can use spacebar to start a new game, definitely fuels the addictive/impulsive play. Unfortunately the cycle is broken everytime I have to take my hand off the keyboard and use the mouse at the Game Over prompt.

I agree... hitting spacebar after game over would be nice. I find that once I hit the okay button and play again then when I hit the first down (or up) arrow afterwards that it slightly moves my screen.

All space bars and arrows while playing the game should fix that.

Re: Show HN: Snaketron, online multiplayer Snake

#9

This is great! Would be cool to have maybe 3 rounds vs the same opponent and a chat window, so the competition can heat up a little. Also, I hope passwords aren't being stored in clear text :)

Sure aren't :) Crypto node module FTW. And I should definitely add those components to make it more competitive thanks for the suggestion!

Re: Show HN: Snaketron, online multiplayer Snake

#10
It works really well about half of the time for me. A really nice effort, but I do notice the other snake "moonwalking" sometimes and reversing several steps before retracing their route. Sometimes I am able to kill them while being several pixels away. It's an awesome start and a great excuse to learn Node though.
Post reply on HN