Hi Mikva,
Are you able to provide more in depth steps on how you achieved this?
It would be greatly appreciated.
Thanks,
firebase.google.com/docs/web/setup
Follow this setup, you must add this script in your index
firebase.google.com/docs/database/web/read-and-write
Then create read and write script with JS plugin following these steps. You can customize how many things you write, database structure, etc. in this step.
Then you call the function again with JS plugin using game variables. So for example if your write script goes like this
function writeUserData(userId, name) {
firebase.database().ref('users/' + userId).set({
username: name,
});
}
And you call: "writeUserData" with parameters "666" and demon, it will write 666 as userID and demon variable as name in database.
For live projects you need to add authentication so people from outside can't manipulate your database. Automatic anonymous login is enough for that if you don't use any other login method.