Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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?
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
Develop games in your browser. Powerful, performant & highly capable.
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!