A simple prototype created to practice implementing an online leaderboard using Microsoft Azure PlayFab.                                                         

Leaderboard Practice


A simple prototype created to practice implementing an online leaderboard using PlayFab,
a cloud-based back-end platform service for live games supporting a range of features
including leaderboards.

Developers can sign up for a free account on PlayFab, which allows you to create up to 10 titles,
with a maximum of 100,000 players per title.

If you just need leaderboard functionality and want a free alternative
without any limitations, have a look at Plassion Leaderboards
Let me know if there are other alternatives you know of.

Thanks to Tottori for highlighting PlayFab in his PlayFab Tech Demo.

How To Play

A random score will be generated every time you hit SPIN.
You can spin as many times as you like.
Each time you beat your own highest score it will be added to the online leaderboard
and ranked against other players.
Are you feeling lucky? ;-)

Tools

Microsoft Azure PlayFab
 

Documentation

Azure PlayFab Documentation
 

References

PlayFab Tech Demo
by Tottori

Download

Download
PlayFabGettingStarted.zip 1.1 kB
Download
LeaderboardPracticePlayFabService.zip 1.1 kB

Comments

Log in with itch.io to leave a comment.

Excellent leaderboard idea! Keep up the good work!

Thanks!

Wow, Highly appreciated Thanks. Do I upload it to my server and it works?

Yes, it will :) And you're welcome to use it for your own projects. Just be sure to link to the PlayFabClientApi.js as shown in the PlayFabGetttingStarted code and, of course, you'll need to setup the game Title in your PlayFab account.

https://tralala.fun/  Think I'm doing something wrong...

(1 edit)

Looks like it's working. Remember you'll need to setup your own TitleId in PlayFab first. See https://docs.microsoft.com/en-us/gaming/playfab/personas/developer

Hi, May I buy the "leaderboard practice A simple prototype" and learn from it?

No need to buy it! I'm happy to share. I've uploaded the PlayFab Getting Started sample source code as well as the source code for my own PlayFab service. Good luck!

Thanks for this! Really interesting. I'll have to look into PlayFab!

Hey Itizso, I was wondering if I could ask you how you learned how to do the PlayFab stuff, a lot of the things you've created in this submission I would love to learn how to do myself. - Roshimitsu

Hey Roshimitsu. Yeah, I definitely recommend giving it a go and it's not too difficult once you get the hang of it.

I started with some basic code examples provided in the documentation. There is a quickstart guide for each development platform. So for this submission I used the Javascript QuickStart guide, but you can find similar ones for other platforms, like Unity QuickStart, Unreal QuickStart, Python QuickStart, etc. 

I was able to copy and paste a lot of the code provided there to log a player into PlayFab, and then other operations like adding a player's high score or getting the leaderboard is very similar, with the specific details for each provided in the API Reference guide. In particular, the api's for Update Player Statistics and Get Leaderboard.

I hope that's helpful?

That's awesome :) Thank you so much for the detailed post, I'm going through the Coco Code tuts on YoutTube atm and the documentation you shared is really helping! Thanks for the info!!

You're welcome :)