Jump to content

Instant games - loader


pstrejczek
 Share

Recommended Posts

I'm finishing work on my game and plan to implement Facebook Instant features. I have a nice custom loader prepared, but in the instant games documentation I have found info that custom loaders are not welcome, and the best way is to report this with setProgress function of instant games SDK. I don't see this function implemented in the instant games plugin. What is the proper way to do this in Panda 2? 

Link to comment
Share on other sites

Instant Games forces to show it's own loader, while the game loads in the background. So this means that there is no use for a custom loader. 

You can detect if the game is launched from Instant Games or not with game.device.instantGames

if (game.device.instantGames) {
    // Game launched from Instant Games
}
else {
    // Game not launched from Instant Games
}

You should use this to make your custom loader only to work when not launched from Instant Games.

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...