[Suggestion] NEW Chrome Packaged Apps

0 favourites
  • 2 posts
From the Asset Store
Background Story generation templates. See the Arcade demo.
  • So I'm back at the hobby/business of making games, though I'm a little rusty. This is some background info on why this suggestion is needed.

    Contruct 2 creates the the legacy version of the chrome packaged app. So I decided to force my game to be a *new chrome app by changing the manifest and adding a background script. I put these links in the dropbox.

    Dropbox to manifest and main js

    Now when running test on my games it loads up as New chrome app in its own process and runs i think at its best.

    <img src="https://dl.dropboxusercontent.com/u/48269173/Construct2/dominoeffect.jpg" border="0">

    until... Local Storage is used.. that crashes my little experiment.<img src="smileys/smiley11.gif" border="0" align="middle"> New Chrome apps cant use Local storage, they have to use chrome.storage api because of changes to the security and design principles of packaged apps. So.. We need...

    Quick solution

    1. WebStorage plugin needs a property option to change the storage engine from LocalStorage to chrome.storage.sync or this could be done automatically by the exporter when choosing chrome Web store. This will benefit games greatly because data from games will be synced from device to device, not to mention all the other benefits of being a New Packaged App. Then Construct 2 should create New packaged apps for the chrome web store not legacy ones.

    Full Solution

    2. It would be great for all of the New chrome apis to be included in a single plugin or just the ones that benefit game design. I know that's a lot to ask. I'll try to help but i have to re-learn javascript just about.

    Chrome API index

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • After doing some research.. New Chrome App can use IndexDB api which is what Construct 2 uses for its game save system. But the WebStorage Object uses LocalStorage Api which breaks a New Chrome App. So if the WebStorage Object could create IndexDB(the same as the Game Save system) in addition to LocalStorage for compatibility. I think that would be great for developers wishing to migrate from LocalStorage to the superior IndexDB.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)