question

florianvoelkers avatar image
florianvoelkers asked

How to create Photon room with Corona SDK

Hey,

we are using PlayFab with Corona SDK for developing our game. We now wanted to start implenting "Online Battles" and were reading about Photon. Unfortunately, the guide for using photon is specifically for using unity (https://api.playfab.com/docs/using-photon-with-playfab/).

So we were wondering how we could implement Photon. We managed to successfully get the authentication token using the PlayFabClientApi, but now we are stuck creating a room. Our best guess is that we would have to create the room using the cloud script, but currently we have no idea how to "translate" what is shown in the unity tutorial to cloud script or directly to lua code.

We hope you can help us!

With regards

Flo

sdksCloudScript
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Your best bet for documentation on implementing Photon Realtime would be the Exit Games site, as they are the team that makes that product. You can find their SDK for Corona here: https://www.photonengine.com/en-US/Realtime/Download#corona. Room creation, join, etc., is actually all done from the client - have a look at their "Particle" demo in that SDK for an example of how you would do this.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.