Jump to content

CocoonJs-Launcher: game won't preload unless clicking a link first


christianstrang
 Share

Recommended Posts

My current game has a nasty bug when being tested with the CocoonJS-launcher on my Nexus 5:

Instead of automatically preloading and starting, I need to click on a link first:

 

url removed

 

It works fine in the browser (phone and desktop) but not with the launcher.

Anybody know what might cause this?

 

Update: I use WebView+

Link to comment
Share on other sites

This will not solve your problem, but this is the first thing i saw:
You're using the DOM. CocoonJS ignores the whole dome except the js files 1 canvas and style with font-family.

mainstate: preload:

$('#debug').text("preloading!");
$('#startbutton').remove();

and so on... this code will not work since cocoonJS has no DOM.


 

Link to comment
Share on other sites

Okay,

does CocoonJS outputs anything in the console?
For me mainState is running.

I'm not experienced in the use of jQuery with CocoonJS ~ does it matters if you comment the few lines of JQuery out - before loading - Do not know if it change anything.

Link to comment
Share on other sites

okay, I only run it trough iOS since that I have no android device available at my current location.
But I do not remember the console should look like this. ..
I also do not have received an update for - more than 2 month.

I will check again when I have an android device available.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...