In Scirra's cocoonjs tutorial I read there's no facebook support yet, but cocoonjs does support it.
can I remove the cocoonjs code in c2runtime.js and load my own cocoonjs.js file?
Will that enable the latest cocoonjs features?
There is indeed a facebook plugin for cocoonjs. Search the forums for facebook. Calimborges is the author of that plugin so look for a post by him. You could alternately search github where he actually has the code posted.
Thanks lanceal, I add to my question a more general question: can I, in general, add the latest cocoonjs library to the exported project? I don't mind writing my own functions (not a plugin) to interact with cocoonjs (that's what I do at work every day ). Question is, is there something technical with construct 2 that can hold me back from doing so?
Develop games in your browser. Powerful, performant & highly capable.
Ohhhhh, lol I'm sorry I guess your question went right over my head. No I don't believe there is anything stopping you from making any adjustments to the exported files. Your life will be easier if you don't minify the project on export though. why not make a plugin if you have the know how?
lanceal, I was thinking about making some changes to add facebook support this weekend, but couldn't find the time to read how to create a plugin :/
I've got a few spare hours tomorrow morning, so I'll read about it
You could also use the existing cocoonjs facebook plugin as a guide to create your own. Here is a link to the gentlemans plugin.
https://github.com/calimaborges/constru ... ded-plugin
Ah, cool stuff, thanks!