Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question: What multiplayer solution should I use to create multiplayer quiz game?

Discussion in 'Multiplayer' started by TheCritt, Mar 9, 2023.

  1. TheCritt

    TheCritt

    Joined:
    Apr 9, 2016
    Posts:
    6
    Greetings,

    I have experience creating 2D games, but I am new to developing multiplayer solutions using Unity. I am seeking advice on which library would be best suited for creating a simple multiplayer quiz game.

    After researching a few options, including Photon, Netcode, and Mirror, I have found that these libraries are mainly designed for games that involve animations and movement, which I will not need for my quiz game.

    My objective is to separate the server and client applications. The server application will select a random question (which may include an image) and display it, while the client application will only contain a form with single or multiple-choice options for the user to select. I have attempted to implement this using Mirror, but I have encountered difficulties due to the server application having a different object hierarchy than the clients, making network management challenging.

    Do you have any recommendations for a library that would be better suited to my needs?
    Edit: Also, ideally my game would be designed to work only over the local network. I don't expect to have cloud servers etc.

    Many thanks,
    Adrian
     
    Last edited: Mar 9, 2023
  2. vis2k

    vis2k

    Joined:
    Sep 4, 2015
    Posts:
    4,282
    If the server doesn't need Unity, then maybe just build it as a regular C# project?
    Mirror is free open source, so you can easily use a low level transport, network reader/writer in your non-Unity project if needed :)
     
  3. Punfish

    Punfish

    Joined:
    Dec 7, 2014
    Posts:
    291
    Why would the object hierarchy be different? Are you trying to make the server and client in different projects?
     
  4. TheCritt

    TheCritt

    Joined:
    Apr 9, 2016
    Posts:
    6
    The project is the same, I am just disabling/activating the GameObjects based if it's Client or Server. The server shows is meant to show the question and available answers, but the Clients see only the answers. That's why I had to hide/deactivate the "Question" UI element on the Clients side.
     
  5. Punfish

    Punfish

    Joined:
    Dec 7, 2014
    Posts:
    291
    By server you mean client host?
     
  6. hazan2015

    hazan2015

    Joined:
    Mar 23, 2015
    Posts:
    1
    Hi! Did you start making your multiplayer quiz game? I also planning to create one.
    Can you share your progress so far? Like what libraries you decided to use?