Grow your CSS skills. Land your dream job.

Create a multiplayer word game

  • # January 8, 2013 at 3:27 pm

    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

    # January 29, 2013 at 4:41 am

    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)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".