Live data from Hacker News

Show HN: A simple multiplayer game with Python and Socket.io

stuff.pyramidlabs.in

11–20 of 20 posts

Re: Show HN: A simple multiplayer game with Python and Socket.io

#11
post #4

Some issues: 1. You should add code to keep diamonds from spawning in rocks. It'd be simple to implement: Check if the diamond spawn location is rock, and if it is, don't spawn it. 2. Don't use a dialog for user name entry; use a form or something instead. In my browser (Chromium on Linux Mint), the dialog locks the entire browser window until I type in a name, even if I don't want to play -- maybe I just want to cli…

Thanks for the feedback. I really appreciate it. 1. Yes, I have been working on that. 2. Fill fix that as soon as possible. 3. Yes, I have put up the code : https://github.com/aradhyat/Mine_escape I am using Pyramid framework and gevent-socketio library for backend and Quintus HTML5 game engine.

The project was built in 2 days over the weekend, so there are few bugs.

Re: Show HN: A simple multiplayer game with Python and Socket.io

#13
post #11
post #4

Some issues: 1. You should add code to keep diamonds from spawning in rocks. It'd be simple to implement: Check if the diamond spawn location is rock, and if it is, don't spawn it. 2. Don't use a dialog for user name entry; use a form or something instead. In my browser (Chromium on Linux Mint), the dialog locks the entire browser window until I type in a name, even if I don't want to play -- maybe I just want to cli…

Thanks for the feedback. I really appreciate it. 1. Yes, I have been working on that. 2. Fill fix that as soon as possible. 3. Yes, I have put up the code : https://github.com/aradhyat/Mine_escape I am using Pyramid framework and gevent-socketio library for backend and Quintus HTML5 game engine. The project was built in 2 days over the weekend, so there are few bugs.

Small bug - I'm reading in HN in bed right now and I have a mounted screen a few metres away from me. I clicked on Start/Play and wanted to cancel, so I cancelled the first alert box but then found myself in an endless loop of alert boxes stealing focus from all other Chrome windows. I had to kill Chrome in the end.

Re: Show HN: A simple multiplayer game with Python and Socket.io

#14
post #6

Is this running on Flask? Could be why it went down. I'm interested to see if the source code is available- I'm currently working on a python game for school and wanted to checkout the multiplayer code.

No, it is not. It is built on Pyramid framework. The code is available at : https://github.com/aradhyat/Mine_escape

Re: Show HN: A simple multiplayer game with Python and Socket.io

#18
post #4

Some issues: 1. You should add code to keep diamonds from spawning in rocks. It'd be simple to implement: Check if the diamond spawn location is rock, and if it is, don't spawn it. 2. Don't use a dialog for user name entry; use a form or something instead. In my browser (Chromium on Linux Mint), the dialog locks the entire browser window until I type in a name, even if I don't want to play -- maybe I just want to cli…

Just to let you know, #1 is somewhat insulting, since you don't know how the implementation works on the backend. Perhaps the entire system is written with the diamonds spawning first. If you read the code and found that it would be easy, I apologize, but it also wouldn't hurt to mention that.
Post reply on HN