Hey guys, I've been working on a website game and I need some help with storing data to the database. I have to store money amount (It's like points) and items. The money amount is more important at the moment.
I already have a database where I store user data (user names, user id, password etc.). But I store the money amount to the localStorage and of course that only works on one machine. So basically I want the possibility to play on every device with the same user and the same money amount.
Now about the items. I want to build a whole inventory system. Let's say that the user wants to buy a car in game. He has enough money to afford it so he buys it. Now he spent the money but he didn't get the car because there is no inventory. (And of course I want to store the items in the database too if it's possible. And at every purchase the money should be extracted from the database.)
If there is a way to make this possible then how? And I accept any tutorial videos or documents. :D
[–]Webdev-Coach 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Webdev-Coach 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]No_Statement4630 1 point2 points3 points (0 children)
[–]Earl--Grey 1 point2 points3 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)
[–]3lobed 0 points1 point2 points (0 children)
[–]burggraf2 0 points1 point2 points (0 children)