Live data from Hacker News

Show HN: A Multiplayer Geography Game Using WebSockets

github.com

61–70 of 70 posts

Re: Show HN: A Multiplayer Geography Game Using WebSockets

#62
post #23

The worldmap seems to not include new zealand, because it takes the browser's zoom level (which i have set to high), and scales it badly to clip out the sides.

You can drag it. It should include it by default though, I had the same issue.

you can't drag it, because as soon as you clicked, it chose the location of the answer, and so you get it wrong!

Re: Show HN: A Multiplayer Geography Game Using WebSockets

#63
post #62

Earlier quoted context omitted.

You can drag it. It should include it by default though, I had the same issue.

you can't drag it, because as soon as you clicked, it chose the location of the answer, and so you get it wrong!

I can. Using mouse, OSX, Chrome.

Re: Show HN: A Multiplayer Geography Game Using WebSockets

#66

This is a lot of fun but I'd also recommend allowing zoom for greater precision then resetting after each question. Pretty simple JS commands for Leaflet to handle and would make a HUGE difference - not sure how folks are getting so precise on such a small map :)

It would be nice indeed but the fact that you cannot zoom limits the number of requests to the map tiles provider.

Re: Show HN: A Multiplayer Geography Game Using WebSockets

#67

This is really great. A few thoughts -Did you have any trouble with the sockets library? -I saw you explicitly mentioned "plane_distance", so are you planning on adding Haversine distance or something else? -Maybe make the map take up the entire screen? Status and first few on the leaderboard could go in the ocean.

The socket library (Flask SocketIO) works great and has a good documentation.

I used plane distance because it's faster to compute and the accuracy is good enough for this use case.

Regarding the UX I think it's a good idea to make the map take the entire screen.

Thanks for the feedback

Re: Show HN: A Multiplayer Geography Game Using WebSockets

#69

Addictive and fun! Thank you! The fact that the crowd playing did not bring it down load-wise is just as impressive. Back-end deployment story?

I was a bit worried when I saw so many people playing simultaneously because the game is hosted on a 2€ VPS at OVH but it worked great!

Re: Show HN: A Multiplayer Geography Game Using WebSockets

#70

This is a lot of fun but I'd also recommend allowing zoom for greater precision then resetting after each question. Pretty simple JS commands for Leaflet to handle and would make a HUGE difference - not sure how folks are getting so precise on such a small map :)

If I know precisely the location of a city (like Kyiv, Istanbul in my case) I was able to pin it with 20 to 45km precision. I think it's close enough on a world scale.
Post reply on HN