3

im creating a game right now and im a bit stuck on how to implement storage of levels. i need to be able to download level files from the internet ota. im not so familiar with transferring files ota, but i have some experience with databases (mysql). what would be a better way of storing the game's level data?

Nikhil
  • 16,194
  • 20
  • 64
  • 81
mixm
  • 531
  • 2
  • 4
  • 18

2 Answers2

3

Using sqlite will definetely decrease the time you spend coding, thus you can focus your effort in what is more important: the logic of the game. What you are going to store is simple data, then it won't worth the effort to use another method to save that info.

Cristian
  • 198,401
  • 62
  • 356
  • 264
1

There are a lot of reasons to use a DB.

If you have data that is only read from and never change (except total overwrite), please think of using flat files. A database may be an overkill in this scenario.

BTW, please consider putting the files in the external storage - it can help the user maintain low app memory - especially if the data files are big.

AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277