Hi Rohan
What you are asking for is indeed very little so this kit can definitely handle this, for sure... but if that is ALL you need then this kit may be a bit overkill for you. Contact me directly and I will sell you the login and data parts separately. That'll set you back $80 rather than $200.
The login part of this kit will manage everything to do with knowing who the current player is. Since you now know who the player i (stored in the background) you can now update this player's data (player id sent along automatically in the background). And job done...
Say the player completes the level and you now want to store the score online. All you need is the following function and then you can just call it once the score is calculated:
void SendScore(int level, int score) { CMLData data = new CMLData(); data.Seti("Level_"+ level, score); WUData.UpdateCategory("Scores", data); }
That's it. Your score for that level is now stored online. Of course, this will overwrite the current value even if it is higher than the last score so you will have to test if the current score is higher before you call that function but , yeah, that is how easy it is.
To fetch back the player's progress/scores you can either fetch it back one at a time or all at once. All at once seems a better choice. Do it right after the player has logged in and now you know exactly where the player is at and you have all the player's scores ready to test later for new high scores. You would do it like this:
CMLData Scores = null; void StoreScores(CML response) => Scores = response[1]; void GetScores(CML ignore) => WUData.FetchCategory("Scores", StoreScores); void Start() => WULogin.onLoggedIn += GetScores;
And that is that. Now you can see how many levels the player has completed by checking: Scores.Keys.Length;
And if you want the score for level 3 (I assume you will name your levels 0,1,2.etc... and not 1,2,3... so level 3 will have been saved as "Level_2") you just do this:
int current_score = Scores.Int("Level_"+2);
Job done :)
So as you can see that part is really really easy... The only part of what you want to do that is NOT handled out of the box is showing the player's score/progress on the website. That data is available for admins to see inside the dashboard but it is not visible to players at all. That will require some custom coding and will depend entirely on how you want to display your data.
As you can imagine, the number of ways that you can display data on a website is limited only by the number of ideas you can have in your lifetime... as such I can't give you a one-case-suits-all function to do that but once you know how you want to show your data on your website you can fetch it back super easily. When it's all said and done, it's just data in a table and data that is keyed in a way to make it easy to get to it... so if you don't know how or don't have someone on your team that can write SQL code / WordPress plugins, just let me know and I'll see how I can help. :)