Leaderboards #
Leaderboards are a common feature in games to provide engagement and competitiveness among your player base, and Nakama provides a feature-rich implementation of Leaderboards. The Hiro wraps the features and functionality of the Nakama leaderboards system, and adds: built-in support for regional leaderboards, identified by their ISO Code, convenient display for friends leaderboards (using Nakama’s Friends feature), and a convenient way to fan-out score updates to multiple leaderboards.
Customization parameters #
The following JSON represents the customization parameters you can use to configure the default user experience for the leaderboard system.
|
|
The JSON schema defines a leaderboards
array which must contain individual objects for each leaderboard you wish to define in the system. You can configure as few or as many leaderboards as needed for your desired gameplay.
Property | Type | Description |
---|---|---|
leaderboards | []Leaderboard | An array of all leaderboards. |
Each individual leaderboard may define the following:
Leaderboard #
Property | Type | Description |
---|---|---|
id | string | The id of this leaderboard. |
sort_order | string | The leaderboard sort type (e.g. asc or desc ). |
operator | string | The leaderboard operation (e.g. set , best , incr , or decr ). |
reset_schedule | string | The reset schedule in CRON format. |
authoritative | bool | Whether scores must be submit to this leaderboard authoritatively. |
regions | []string | The available regions for the leaderboard. |