Jacob-Griffin / TelephonePictionary2.0

New version of blowyourfaceoff.com using more modern web technology than php and raw javascript
https://byfo.net
0 stars 0 forks source link

Join game via link #35

Closed Jacob-Griffin closed 5 months ago

Jacob-Griffin commented 6 months ago

We should expose a route that allows joining a game to be a clickable link

For example, the host could click a share button to copy a link that looks like this https://blowyourfaceoff.com/join/{gameid}

A guest clicking this link will then go to a page that simply says "Joining Game {gameid}" "Name: [input]" "[Join button]"

Thus saving the need to post the link to byfo separately for new players, and saving the need to read out/copy-paste/type the game id

Jacob-Griffin commented 5 months ago

Implemented. Going to [origin]/join/[gameid] will show a landing page that just prompts for a name and sends them to the shared lobby. Name safety and overlaps are handled correctly on this page. Lobby has a button to copy this link to clipboard