js-game-server icon indicating copy to clipboard operation
js-game-server copied to clipboard

Implement a game lobby

Open aurium opened this issue 11 years ago • 7 comments

http://www.html5gamedevs.com/topic/7767-js13kgames-competition-2014/page-3#entry48410

The main page on port 80 may list the games and connected players.

A chat-room is also needed for this feature.

aurium avatar Jul 25 '14 18:07 aurium

If i understand correctly in your proposal a sandbox is capable of running multiple games, this way I think it would be great to have one separate node.js server to host the lobby itself that could connect to multiple game servers/sandboxes via TCP on the standard client port (this can become useful in the case if one sandbox server is not enough to run all the games at once). In the lobby I think it would be nice to have separate "rooms" for each game, listing the currently available sessions (and also hosting a simple chat).

gheja avatar Jul 25 '14 20:07 gheja

Good! But we must to consider the time. For this year we may code it in only one server and only one room. For the next year we can make it greater. :-)

aurium avatar Jul 25 '14 21:07 aurium

I don't know if we can do it for 2014 competition, but that is may proposal: lobby-mockup

aurium avatar Jul 27 '14 16:07 aurium

The mock-up looks great, although "Game info" should contain the list of the active sessions available to join (i.e. ones that need more players to start) and a "Create new game" button I think... or should every dev create their own implementation of these? Hmm...

gheja avatar Jul 27 '14 22:07 gheja

Well... I was thinking in an API for games inform things like winners and records... So your proposal fits nice. :-) But... for now (2014), the game must be responsible for it's sessions and rooms.

aurium avatar Jul 28 '14 00:07 aurium

@gheja game lobby has no chat, but is working, listing games now. :-)

aurium avatar Aug 04 '14 04:08 aurium

@aurium sound great, although I still have to check it out :)

gheja avatar Aug 11 '14 11:08 gheja