Hi all,
I like to work with databases because of ease and safety.
And I want to work with SQLite in my Local (Offline) Android game
For several reasons
1- It sounds safer because it is local, I thought player prefs can be easily hacked (just my idea)
2- It is more organized.
However;
1- I have never used it in the android system besides if I convert my project for IOS and other platforms in the future I don’t know the compatibility of SQLite with those systems.
There is another option btw. Save as binary, it is cross-platform, it is safe and its complexity is probably enough for my game.
PlayerPrefs ideally should be used for storing just that: preferences.
Audio/Video/Accessibility settings and such.
It’s not the best for storing complex game data, which is where a database can come in handy.
SQLite is supported on many platforms, Android and iOS included. You likely won’t run into compatibility issues with it. https://www.sqlite.org/onefile.html
There is another option btw. Save as binary, it is cross-platform, it is safe and its complexity is probably enough for my game. What do you think about it?