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

Camera Setup for Card Trading game

Discussion in 'General Discussion' started by slayeruk, Jul 31, 2015.

  1. slayeruk

    slayeruk

    Joined:
    Mar 10, 2014
    Posts:
    33
    How are the cameras setup, in general, for a multiplayer card trading game?

    Are both players using a fixed camera in the same world position and the cards and board rotated for one player?

    Or does each player have a copy of each players cards and both views are mirrored?
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,150
    It is easier to simply link you a video showing multiplayer gameplay in Magic 2015 by Wizards of the Coast. This is a pretty short video at just under four minutes and shows two players at once.

     
    moh05 likes this.
  3. slayeruk

    slayeruk

    Joined:
    Mar 10, 2014
    Posts:
    33
    Thank you for replying, maybe I did not explain myself properly, I'll try again.

    Yes that is one way, but if you have played hearthstone multiplayer, each players view is from the same position (essentially mirrored) and I wondered how they did it. Either by A) rotating the board and cards or B) creating copies with reference or C) I don't know that's why I am asking.

    Also in the video you linked, you only showed one players perspective, in multiplayer, player 1 is on the bottom from their perspective but player 2 is also on the bottom from their perspective.
     
  4. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    There is only one static view with no camera tricks. You just code the game/UI the way that opponent is always on top no matter if it's AI or network player as you will only receive simple actions from opponent.
     
  5. Slyder

    Slyder

    Joined:
    Oct 17, 2013
    Posts:
    270
    Welcome to 3d where things can be rotated or viewed from different camera angles. i think in this case, the client just treats the other player as an "AI". The "AI" does things based on what some player does.
     
  6. moh05

    moh05

    Joined:
    Nov 26, 2015
    Posts:
    65
    Was wondering the same, did you get a solution for that?