This AR Studio project is a homage of the ubiquitous "Rock, Paper, Scissors" game for 2 players.
In this game we use AR Studio's Face Tracking to turn your face into Fire, Earth or Water elementals where Fire burns Earth, Earth drinks Water and Water extinguishes Fire. This game idea was created during the Facebook AR Studio hack in London. Credits below :)
- A Mac with AR Studio
- An iOS or Android phone to play on!
-
Setup and run the backend game server. You can choose to run the backend in a variety of ways:
- localhost (via ngrok - all AR Studio Networking requests must be https!)
- deploy to Azure Functions and Cosmos DB (refer to the readme for setup instuctions.)
-
Enter your credentials into the 'scripts/script.js' file:
var _host = "https://YOUR_FUNCTION_APP.azurewebsites.net"; var _defaultCode = "YOUR_DEFAULT_FUNCTION_CODE"; // (not required for localhost)
- Enter your host domain:
- localhost via ngrok
https://YOUR_DOMAIN.ngrok.io
- deployed as Azure Function
https://YOUR_FUNCTION_APP.azurewebsites.net
- localhost via ngrok
- Remember to whitelist your domain in AR Studio menu:
Project > Edit Properties > Capabilities > Networking
EnterYOUR_DOMAIN.ngrok.io
orYOUR_FUNCTION_APP.azurewebsites.net
and save changes. - If you've deployed the backend as Azure Function app then you will also need to enter your 'default' Function code which you can find under Azure Function app settings.
- Enter your host domain:
-
Run in AR Studio or deploy to device using the AR Studio Player app for iOS / Android.
This sample exists thanks to team "undefined" at the AR Studio hack in Facebook, London.
- Gregory Wakefield
- Jamie Poole
- Mathias Mayrhofer
- David Douglas