Closed scally closed 5 years ago
Has anyone picked this up ?
I'm not sure if @scally posted this as a way of documenting what he would work on next, or if this is open. Let's check with him.
@MrRhodes @nicolodavis this is open -- I haven't started in on this yet, was thinking it over a bit. I think it could use a bit of brainstorming still as to how it will work, but if one of you have an idea let's get it down :)
I'm a big fan of minimalist (mostly text) UI that provides hooks for people to customize if they want a different look and feel. Here are some thoughts on what it could look / behave like:
We can probably store player credentials (required to join a game) in either cookies or local storage.
We could also actually start even smaller:
added an Angular initial lobby example in https://github.com/turn-based/boardgame.io-angular/tree/master/src/app/examples/lobby
The most obvious gap exemplified this implementation is that there is missing server APIs for: 1 game session metadata- Specifically, numOfPlayers + current players metadata (index id and name). 2 getting all those game sessions for the lobby (possibly with filter parameters like gametype)
Thanks for uncovering those, Amit! I'll add them to the roadmap. Feel free to also send me a PR if you have time to work on these yourself.
A few things may still be missing to finish the initial lobby implementation:
I'm new to boardgame.io and interested in the lobby feature. I found and read through this code that seems to do a robust job of creating game lobbies and managing sockets:
https://github.com/falconscript/gamelobby
I'm going to read through the above items of this issue #197 (including amitport's Angular implementation) and see if I can contribute to this feature. I'm new, so no promises on my ability to make a good contribution, but I'll try!
@chonghorizons we have another primitive lobby implementation in #256 if you want to have a look.
Request for advice:
I'm working on factoring out of PR #256 a generic lobby component in lobby/lobby.js
@nicolodavis how do you see it?
render
method) ?newGame
, playerJoined
... and handles players actions like connect
, join
, ... ? This component would be encapsulated by the react component of the lobby UI (with a first example in examples/react/modules/lobby/
).PR #294 ready for review!
PR #294 was merged, do we have any examples using it? If not, I think I can help adding one
We do! But I am getting an error:
I will try to debug.
Ok, sorry, this error seems to be happening only in my ChromeOS because of this bug: https://bugs.chromium.org/p/chromium/issues/detail?id=848127
They only foward some ports by default 8000 is one but 8001 is not, and if I try to use the domain instead I get a CORS because of the lack of HTTPS :(
Looks like you need #343.
Closing this in favor of #354
As a followup to #189 , we will need a simple implementation of a web lobby utilizing the new API