Leaderboard Samples

Player-type Leaderboard

Leaderboards are a popular game system in many different games. LootLocker supports two types of leaderboards: generic-type leaderboards and player-type leaderboards.

This sample can be found in our SDK under the name 2a - PlayerTypeLeaderboard

This SDK sample demonstrates a player-type leaderboard in action where the leaderboard entry is directly connected to the player meaning that the player can only have one score per leaderboard. This examples also includes metadata where the device system language is used to indicate the country the player is playing in and attaching it to their entry.

In-Engine

To submit a score, enter a score value and click Upload Score. You will then see a score appear in the Top 10 players menu.

Web Console

To configure a player-type leaderboard, simply select Player when selecting the leaderboard type. You can find a full breakdown of all leaderboard settings in the feature's documentation.

Generic-type Leaderboard (Arcade Style)

Leaderboards are a popular game system in many different games. LootLocker supports two types of leaderboards: generic-type leaderboards and player-type leaderboards.

This sample can be found in our SDK under the name 2b - GenericTypeLeaderboardArcadeStyle

This SDK sample demonstrates a generic-type leaderboard in action where the leaderboard entry is not directly connected to the player. In this example this leaderboard type allows players to enter their name whenever they set a score, similar to how it would work in an arcade game. This results in the player being able to submit as many scores as they wish.

In-Engine

To submit a score, enter a name and score and click Upload Score. You will then see a score appear in the Top 10 players menu.

Web Console

To configure a generic-type leaderboard, simply select Generic when selecting the leaderboard type. You can find a full breakdown of all leaderboard settings in the feature's documentation.

Float Leaderboard

Leaderboards are a popular game system in many different games. LootLocker supports two types of leaderboards: generic-type leaderboards and player-type leaderboards.

This sample can be found in our SDK under the name 2c - FloatLeaderboard

This sample demonstrates a float value being used as a score. The float has 4 decimal places. It is then converted to an integer by multiplying and dividing it with / by 1,000 when it's being submitted or retrieved.

In-Engine

To submit a score, enter a name and score and click Upload Score. You will then see a score appear in the Top 10 players menu.

Web Console

To configure a generic-type leaderboard, simply select Generic when selecting the leaderboard type. You can find a full breakdown of all leaderboard settings in the feature's documentation.

Last updated