How to create "gamerooms" for a web dev project?

This page summarizes the projects mentioned and recommended in the original post on /r/learnprogramming

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • codenames

    Play codenames online

  • For example, at this website https://www.horsepaste.com/ (a Codenames clone), you can enter a custom "gameroom" url and join other people's games. Are there any resources to help me with this kind of stuff?

  • pictionary

    Discontinued Online Pictionary (by Lukydemboy)

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • Socket.io

    Realtime application framework (Node.JS server)

  • Now you have the rooms, but the rooms will not automatically update if someone joins or leaves. You should something like socket.io for this, it's fairly simple. You make the server (socket.io) listen for request. You make the requests from the front end and the server processes the request. When you processed all the data, you can return something. Also you can let your browser listen for events from the server. For example if someone joins, your browser 'hears' the event and so you can update you room without reloading the page. You just send the user's data in the request, when you receive this data, you just add it to the room (see second image in imgur).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts