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
  4. Dismiss Notice

Table Tennis game using PC as screen and smartphone as Controller

Discussion in 'Multiplayer' started by daffadaraz7, Nov 18, 2020.

  1. daffadaraz7

    daffadaraz7

    Joined:
    Nov 5, 2020
    Posts:
    2
    I'm very new on unity, but as I said in the title is it possible to do this? and if so, is there any tutorials or any documentation about this?

    I've been trying to make a server on PC and client on Android but have been failed to do so.

    This is for my thesis, so if anyone can help me I would be very grateful.

    Unity 2019.4.13f1
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Yes this can be done, the tutorials depend on which networking API you plan to use. You'll basically just going to make a networked multiplayer game, but the smartphone client will have a UI to send commands to the server instead of having a character represented in the game. You're unlikely to find a tutorial specific to your use case, but you should be able to make almost any network API work for this kind of thing.
     
    daffadaraz7 and luke-unity like this.
  3. daffadaraz7

    daffadaraz7

    Joined:
    Nov 5, 2020
    Posts:
    2
    Thank you for your reply!

    Though I haven't progress that far into the network side of things. I'm still working on making the phone gyroscope and accelerometer as if it is 1:1 to the racket. do you know anything that could help ?