I'm about to dive into a new mobile project, to be more specific a mobile TCG (Trading Card Game) Deckbuilder app. As it's about to be my first mobile app, I've done some research and came across Phonegap. I've done a couple of node-based web apps, so it seems right down my alley.
I started searching for how to store any data on a phone and found out there are 3 possibilities:
- MemoryStore (SQLLite?)
- LocalStorageStore
- WebSqlStore
LocalStorageStore, seems out of the question for the complexity of my app. So it's between MemoryStore and WebSqlStore.
What would suit my project? And how complex could you go?
So the idea is to have a "big" json file with all existing cards:
{
id: xx,
name: 'name'
manacost: xx,
attack: xx,
defence: xx,
effects: [
'lorem ipsum',
'lorem ipsum'
],
image: '/img/cards/xx.png'
}
So to save a deck I suppose I could go for:
- deckname
- array of cards (wondering whether I save them with {id, amount} or count them.
- created & updated
Wouldn't this be too heavy on the memory? And yet again, what database system would be suited for this?