CocoonJS Deploy your games as native mobile apps

Forum Home Forum Home > Construct 2 General > Construct 2 general
 Post Reply Post Reply Page  <1 45678 11>
Author
642 Rep
Post Options Post Options   Quote Inni Quote  Post ReplyReply Direct Link To This Post Posted: 31 Mar 2012 at 6:33pm
I don't understand the steps they describe in the website:

    Remove the HTML entry point file.

    Create a Canvas object manually from JavaScript. If needed, substitute document.getElementById function calls by document.createElement("canvas"); or new Canvas();

    Put all your JavaScript in one file. Your whole JavaScript code should be in just one .js file.

    Create a zip file with your JavaScript file and game assets. The current version of CocoonJS only loads local assets.
Back to Top
3,566 Rep
Post Options Post Options   Quote nemo Quote  Post ReplyReply Direct Link To This Post Posted: 31 Mar 2012 at 11:17pm
CocoonJS doesn't currently support Construct2.
As I understand the instructions:
1. Delete the index HTML-file.
2. In that HTML-file, there was a command to create canvas, so this should be now executed from the *js file with a command new Canvas();.
There should be only one *js file and all the java code should be in that one file.
3. There should be no folders, so this means that all the music, *js and *png or *jpg images should be together.
4. Select all files and create a zip.package(*zip) with winzip or winrar.
Back to Top

Scirra Developer
81,084 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 31 Mar 2012 at 11:23pm
Don't bother trying CocoonJS, it doesn't work for the time being so even if you correctly follow the instructions it won't work.

@Basseman - it's a complicated project but we're progressing, we need to wait for appMobi to make some updates to directCanvas though so it depends partly on them. They're announcing directCanvas for Android soon as well.
Back to Top
3,341 Rep
Post Options Post Options   Quote prinsukun Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2012 at 4:14pm
I'm glad that been working on :)

Im not anti appmobi or hate them, but still have great faith for CocoonJS to became alternative beside appmobi and phongap, especially it's free
http://www.prinsukun.com

check out my website :D
Back to Top
2,153 Rep
Post Options Post Options   Quote UrbanKhalifah Quote  Post ReplyReply Direct Link To This Post Posted: 01 Apr 2012 at 4:15pm
as always, this community never fails to astonish me

keep up the good work, hope the result is something we all can use to create amazing stuff for mobile :)
"One who knows nothing, can understand nothing" - Ansem
Back to Top
2,241 Rep
Post Options Post Options   Quote FredQ Quote  Post ReplyReply Direct Link To This Post Posted: 25 Apr 2012 at 3:04pm
Just curious if there's been any development with this? Does anybody know?
Back to Top

Scirra Developer
81,084 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 25 Apr 2012 at 6:03pm
@FredQ it's a work in progress!
Back to Top
3,341 Rep
Post Options Post Options   Quote prinsukun Quote  Post ReplyReply Direct Link To This Post Posted: 25 Apr 2012 at 11:04pm
can't wait the updates
http://www.prinsukun.com

check out my website :D
Back to Top
7,980 Rep
Post Options Post Options   Quote Kiyoshi Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2012 at 5:31pm
It's here! Anyone with and Android phone ready ? Will there be support for iOS ?

Edited by Kiyoshi - 08 May 2012 at 5:31pm
Back to Top
2,241 Rep
Post Options Post Options   Quote FredQ Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2012 at 5:53pm
Not available for the free edition though. Would be nice to have a trial to see how well it works before we make a decision on whether or not to purchase.
Back to Top
 Post Reply Post Reply Page  <1 45678 11>

Forum Jump Forum Permissions View Drop Down