Which type of storage should, I go with for my game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hamza_memon

I have a match 3 game. It will have in-app purchases too. My question is, right now, I store all data in dictionaries. The data my game will have is, it has all the levels whether they are unlocked and the high-score and all, it will have the amount of boosters the player has and the lives he has, lives auto-refill, one every fifteen minutes. I do use the check whether file is modified upon loading it. Plus if user uninstalls the game and re installs it, it would make all the purchases and user data go away because they were stored in the dictionary. Should, I use a database for it, I am thinking of firebase are there any other nice options? Also, I stumbled upon something called snapshots in google play services link to save games document This is exactly what, I want, so is this independent of a database, if, yes, how do, I implement this, basically, I just want a store of data which doesn’t go away on uninstall and is not modifiable easily. I want the player to be able to sign in to their google play account to save data, if not signed in the data will get stored locally, but in order to restore it, need to sign-in like other games.

:bust_in_silhouette: Reply From: rakkarage

ya storing data in the cloud seems essential for a real game…

Firebase & Firestore is good but no godot api so have to first craft http request rest boilerplate to communicate with api

another option is Heroic Labs Nakama which has a nice godot api

Here is a basic demo that connects (using email account) to and stores data in both nakama and Firebase

Finally, something that works and also with a video tutorial for a beginner like me. Thank you.

hamza_memon | 2020-06-25 06:40