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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to convert to multiplayer P1 vs p2

Discussion in 'Game Design' started by cryogee, Jan 22, 2018.

  1. cryogee

    cryogee

    Joined:
    Aug 6, 2009
    Posts:
    132
    Hello Game Designers

    I have a game 'Shotgun Pete' It was featured by Apple last week in selected countries
    I wish to convert it to a two player experience P1 vs P2. But Im not really able to come up with a straight concept to do it.
    Can you please look at the gameplay and throw some pointers which I can try to prototype

     
  2. verybinary

    verybinary

    Joined:
    Sep 23, 2015
    Posts:
    373
    look into the photon networking asset?
     
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Come up with a concept for how you want multiplayer to work. Are multiple players going to interact in the same scene? Are they just going to compete for high scores, but really play the "game" part in single player? Are you going to need a lobby? Are players automatically matched together? Figure out those kinds of questions, and their answers. After that then start looking at the various networking solutions and how they apply to your vision for multiplayer. You'll undoubtedly go with very different networking architectures depending on what you really need.

    Some additional things to think about is how you want to make connections between players, such as do you want to host your own dedicated server? Do you want to only allow players to connect on the same LAN? Do you want to use a 3rd party cloud type solution for making connections between players? Look at the various pros/cons of all these, costs involved, etc.

    For a first try at adding even simple networking to a game, expect to spend at least the same amount of time you have already put into the game into adding networking.

    For something really simple, like random matches and just comparing high scores, you could for example just setup a dedicated server and have all players connect to it using UNET's NetworkServerSimple. The server sets up random matches between connected clients, and acts as a middle man for the small amount of data you need to exchange between the clients (could just be some name and skill level info, synchronizing a start time, and updating scores to the opposing player during gameplay). If you want both players in the same scene together, you'll have to get more complicated where you're syncing object movements between clients, and probably want to use something like Photon or the Unity Multiplayer service.
     
    Last edited: Jan 26, 2018
    cryogee likes this.
  4. sokki

    sokki

    Joined:
    Jan 31, 2015
    Posts:
    166
    You have covered the whole gameplay and made a game ideally for 1 player, so adding one more player will be definitely tricky for you. However, based on my experience as webgl publisher (and buyer :) ) I can suggest you few good topics which might be good for you, or they will trigger even better ideas by you, or by other unity members.

    COOP
    1. Add the 2nd player to be on land, and his only task will be to "rescue, save" the trapped girl. His only job will be to move around the sweet spot (untraping point) and avoid enemies and traps. Here we'll have the shooter to protect 2nd player, and the 2nd player will try to save the girl. This will lead to a game over, tho, which you might not be fan of it. Also to mention, the purpose of the 2nd player is tricky, as without any danger or challenges, his job will be fairly easy.
    2. Add the 2nd player to shoot opposite of the 1st player, which will introduce adding new elements and more enemies from above. Unlike 1st player limited movement (due to side hammers) the 2nd player can be on a movable rail handcar which could move different than flying player and his ammo will be different as well (example: faster movement with wider shooting angle which will affect and reduce his precision)

    VS
    Tricky indeed. Remove obstacles, and have both players in the scene, so their jumping angle is wider and they will compete with each other for kills.

    What are your thoughts?
     
    cryogee likes this.
  5. Not_Sure

    Not_Sure

    Joined:
    Dec 13, 2011
    Posts:
    3,541
    Boom!


    You're welcome.
     
    cryogee and theANMATOR2b like this.
  6. Fortitude3D

    Fortitude3D

    Joined:
    Sep 7, 2017
    Posts:
    155
    using photon networking its easy to re-crrate your game in multiplayer..give them a shot, you wont regret it