Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
3.2 KiB

  1. # Overview
  2. This example uses basic Quickmatch and Peer-to-Peer networking to creating a cross-platform ball shooting game.
  3. Quickmatch is used to find other players for a match and Networking is used to synchronize player
  4. state such as movement of the balls.
  5. # Application Setup
  6. 1. Open the Project in Unity 5.4.1p1 or later
  7. 2. Import the OculusPlatform Unity package (Main Menu -> Assets -> Import Package -> Custom Package)
  8. ## Rift
  9. 1. Create your Rift application on the Oculus Developer Dashboard
  10. 2. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Oculus Rift App Id)
  11. ## GearVR
  12. 1. Create the GearVR application on the Oculus Developer Dashboard
  13. 2. Move the GearVR application into the Rift application's App Grouping
  14. 3. Copy the Application ID into the Project (Main Menu -> Oculus Platform -> Edit Settings -> Gear VR App Id)
  15. 4. Copy the OSIG files for the GearVR devices you are testing to Assets\Plugins\Android\Assets
  16. # Configure Matchmaking
  17. 1. On the Oculus Dashboard, navigate to the Matchmaking section for your App Grouping
  18. 2. Click Create Pool
  19. 3. For the Pool Key use: NORMAL_QUICKMATCH, or if you want to use a different Pool Key, update the constant in MatchmakingManager.cs
  20. 4. Choose Quickmatch mode
  21. 5. Enter 2 for Min Users and 3 for Max Users
  22. 6. Choose None for Skill Pool
  23. 7. Leave Advanced Quickmatch set to No
  24. 8. Leave Should Consider Ping Time? at the default setting of No
  25. 9. Don't add anything under Data Settings
  26. 10. Click Submit.
  27. # Configure Leaderboards
  28. This sample uses two Leaderboards to track player scores. One leaderboard tracks the player that has
  29. won the most games and another tracks who achieved the highest score in a single game. Setup the leaderboards
  30. using the following steps:
  31. 1. Navigate to your App Grouping section on the Developer Dashboard
  32. 2. Create a new leadername with the API NAME **MOST_MATCHES_WON** and sort order **Higher is Better**
  33. 3. Create a new leadername with the API NAME **HIGHEST_MATCH_SCORE** and sort order **Higher is Better**
  34. # Configure Achievements
  35. The sample updates an achievement that counts the number of times a player has won. Follow these steps to create an
  36. achievement that is unlocked when the player has won 10 matches:
  37. 1. Navigate to your App Grouping section on the Developer Dashboard
  38. 2. Click on the **Create Achievement** button
  39. 3. Set the API Name to **LIKES_TO_WIN**
  40. 4. Set an appropriate Title and Description
  41. 5. Leave the Write Policy as **CLIENT_AUTHORITATIVE**
  42. 6. Leave Is Achievement Secret untoggled
  43. 7. Set the Type to **Count**
  44. 7. Set the Target to *10*
  45. # Upload your builds
  46. Build executables from Unity and upload them to your Application Dashboard
  47. * Rift
  48. 1. Add the executable and data folder to a zip file
  49. 2. Upload the zip to the Alpha channel on your Dashboard
  50. 3. Set the executable name you chose in the zip file
  51. 4. Add Friends you are testing with as Subscribed Users for the Alpha channel
  52. * GearVR
  53. 1. Create an android keystore (if you don't have one) so Unity can sign the build. (Player Settings -> Publishing Settings)
  54. 2. Upload the apk to the Alpha channel on your Dashboard
  55. 3. Each apk you upload needs a new build number (Player Settings -> Other Settings)
  56. 4. Add Friends you are testing with as Subscribed Users for the Alpha channel