Create a Leaderboard
The first step is to create a leaderboard definition that includes the main elements for ranking players. For our zombie game, we’re going to use multiple scores. The following example shows how to create the leaderboard definition using the C# SDK.Manual tiering
With the leaderboard properly created, we can now proceed to define how we want to create our tiers. First, we need to define how we want to split the players population. Typically, as higher the rank the fewer the players. With that concept in mind here’s how we’re going to define our tiers.- Bronze: 0 - 35% of the players.
- Silver: 35% - 60% of players.
- Gold: 60% - 80% of players.
- Platinum: 80% - 90% of players.
- Diamond: 90% - 99.5% of players.
- Saviors: Top 0.05% of players.
EntryCount that tell us how many rows the leaderboard currently has.
This number is different from SizeLimit which represents the maximum number of rows of the leaderboard.
To determine a player’s tier, we take their position within the leaderboard and divide it by the EntryCount
property to see where they fit within the defined tiers.
Quick examples:
- Bottom Player: A player positioned at 8500 out of 10,000 is within the 85% of the population, falling into the Bronze tier.
- Middle Player: A player positioned at 3500 out of 10,000 is within the top 35% of players, falling into the Gold tier.
- Top Player: A player positioned at 50 out of 10,000 is within the top 0.5% of players, becoming a “Savior.”
Conclusions
In this tutorial, we learned how to do the following operations:- Create a leaderboard.
- Learn how to query data from a leaderboard.
- Learn how to create a manual tier distribution based on percentiles.
- Learn how to map the result of the position of a player to an actual tier.
