Integrate photon for sharing player's position and state in threejs
Hi,
I am a newbie and am looking for a solution to share player's position and state in a simple game. The game is built in three js.
Is there a code pointer or documentation around how can I use the photon library for this ?
Thanks !
0
Answers
-
Hi,
You need to import Photon JS library into your app and use it via Photon.LoadBalancing object. See documentation: https://doc-api.photonengine.com/en/javascript/current/Photon.LoadBalancing.html
This approach should work for any JS framework. You can find usage samples in the demo applications from the SDK package. They are typescript based, but in the end using the same Photon.LoadBalancing object.
1