Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Create a multiplayer word game

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41847
    jazzgnat
    Member

    What is the simplest way to make a multiplayer game in javascript. I am trying to create a game in which the players make a text response to a prompt in a limited amount of time. Then all the users answers are displayed and they vote on the best ones. My problem is I have never built anything with multiple users and am not sure what the best way to add that function is. I have only used plain javascript without any fancy frameworks or libraries.

    Here are the steps I am trying to achieve.

    1. player enters lobby and waits for a round to begin
    2. all players receive a prompt and can enter text into text box(this will probably be an overlay)
    3.all players responses are displayed
    4. players vote on their favorites excluding their own
    5. votes and other scoring are tallied, displayed, and updated
    6. reset/repeat

    #122651
    CarlRosell
    Participant

    the easiest way of doing this is by [node.js](http://nodejs.org/ “node.js”) and then a Websocket. my suggestion is [socket.io](http://socket.io/ “socket.io”).
    there are several good tutorials on how to create chatrooms with socket.io. and then just modify it for your needs.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.