- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It's for a game project. I have a list of units, with their attributes like speed, saved into an array in a js file. As the number of units and levels is growing the memory required worries me. I want to save them in a database and load only the ones used for each level.
Is it possible to save data in any of the supported databases at develop time so when the app is downloaded from an app store the database already contains that data?
I don't see how to do it. What I'm considering is that each unit is a resource text file. Then use AJAX to load the needed units for each level (Note that these resource files aren't remote, they go with the app). Same strategy for the files representing the game levels.
- Tags:
- HTML5
- Intel® XDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I would recommend using third party plugin SQLite. Which is listed in the featured plugin list as well.
More details can be found here: https://www.npmjs.com/package/cordova-sqlite-storage
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I would recommend using third party plugin SQLite. Which is listed in the featured plugin list as well.
More details can be found here: https://www.npmjs.com/package/cordova-sqlite-storage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seems like the way to go. Then I just have to fill a sqlite file with all the unit and level data and then use that API to access it.
Thank you.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page