I’ve heard it’s feasible to integrate the Photon networking engine with Cocos2Dx, but I was wondering if there were any example projects or detailed tutorials on how to make an Android/iOS Cocos2Dx project using Photon. I’m working in xCode, and my existing code is a board game in cocos2d-2.0-x-2.0.3 that makes heavy use of the GUI extension.
I’ve already tried two setups. The first began with a copy of the TestCpp sample. I followed the instructions in the Photon documentation for integrating Photon into project, but no matter what I do, #include “PhotonPeer.h” throws an error.
Next, I started from Photon’s “Realtime” demo, which already integrates an earlier version of Cocos2DX, but I’m not sure how the files are structured and I’m having trouble updating to 2.0.3. (Although it may just be that I can’t find the new version of libcocos2d_iphonesimulator.a and libcocos2d_iphoneos.a) Even if I can do the update, I have no idea how to get the iOS and Android sides of Photon integrated; I’ve barely worked that out using this tutorial: http://paralaxer.com/cocos2d-x-project-setup/. I also need to fit the GUI extension in, and I’ve never done that manually.
Honestly, I can probably work this out eventually, but it would really help if there were a tutorial for this somewhere, or an example project with everything integrated to work from. Thanks.