How to store and update data table on client side (iOS MMO)
Posted
by
farseer2012
on Game Development
See other posts from Game Development
or by farseer2012
Published on 2012-10-18T04:16:46Z
Indexed on
2012/10/18
5:23 UTC
Read the original article
Hit count: 226
Currently i'm developing an iOS MMO game with cocos2d-x, that game depends on many data tables(excel file) given by the designers. These tables contain data like how much gold/crystal will be cost when upgrade a building(barracks, laboratory etc..). We have about 10 tables, each have about 50 rows of data. My question is how to store those tables on client side and how to update them once they have been modified on server side? My opinion: use Sqlite to store data on client side, the server will parse the excel files and send the data to client with JSON format, then the client parse the JOSN string and save it to Sqlite file. Is there any better method? I find that some game stores csv files on client side, how do they update the files? Could server send a whole file directly to client?
© Game Development or respective owner