Page 1 of 1

can I put the latest cocoonjs version file in construct 2?

PostPosted: Tue Sep 02, 2014 12:45 pm
by trueicecold
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?

Re: can I put the latest cocoonjs version file in construct

PostPosted: Tue Sep 02, 2014 5:15 pm
by h1k3
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.

Re: can I put the latest cocoonjs version file in construct

PostPosted: Wed Sep 03, 2014 6:39 am
by trueicecold
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?

Re: can I put the latest cocoonjs version file in construct

PostPosted: Wed Sep 03, 2014 1:35 pm
by h1k3
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?

Re: can I put the latest cocoonjs version file in construct

PostPosted: Wed Sep 03, 2014 1:57 pm
by trueicecold
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 :)

Re: can I put the latest cocoonjs version file in construct

PostPosted: Wed Sep 03, 2014 2:18 pm
by h1k3
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

Re: can I put the latest cocoonjs version file in construct

PostPosted: Wed Sep 03, 2014 2:30 pm
by trueicecold
Ah, cool stuff, thanks! :)