Need a Backend for the game
Need to store following Data
Player ID : This i will provide, so you have to give me a api for it.(Google and fb part : they send an token id that would be our player id)
Username : This should be uniques and should be of 8 characters including numbers
Profile Picture : Here we shave to choose option from 1to16.
Coins : Our Game coins Balance
Gems : Our Game gems Balance
Player Experience : From 0 to 100
Player Level : From 1 to 8
Current Cloth : Player current Cloth ID
Purchased Cloth : The clothing id that player has ppurchased so far
Current CHaracter : The model which is in Use.
Purchased Character : The Character Id which are purchased by player
ActiveEmotes : The emotes which are purchased
ActivePets : The pets which are purchased
ActivePetEmotes : The Pet Emotes which are purchased.
Friend Request Sent : The player which ahve sent the friend request
Friend Request Received : The player who receives Freind Request
Friends : Where friend request is accepted and both are friend now.
See above is the structure for the table.
Friends would work like
Lets suppose there are two Players x and Y
X sent friend Request to Y then, in Table ROW "Friend Request sent" X name would be There and In row "Friend Request Received" Y name would be there.
If Y accepts this then both will became friends and In Friend Row both Player id would be there.
Need APis of post and Get for following
CHeck Player id available or not
If not then create a new player id.
In This we will use all values default only player id i will provide and user name.
If the Player Id exists then Give details of player
Get Player Details
Update coins, gems, clothing, Characters, emotes, pets and pet emotes (Only certain amount can be updated i.e. not more than once daily)
Purchase of coins, gems, clothing, Characters, emotes, pets and pet emotes.
Friend Request sent, received and accepted.