SC_ScoreFormatter allows you to configure and display the score as required.
Create an SLScoreFormatter.strings file. The Score Definition section on the developer website offers a score formatter, to configure the score to meet your game's requirements. Edit, copy and save the score formatter to SLScoreFormatter.strings. Additionally, the "Get Leaderboard Widget" link offers a preview of the formatted scores. It is important that the SLScoreFormatter.strings file contains your modified configuration. The widget is useful to display your game's score on a website.
- Use the following bar-descriptor.xml entry to add the SLScoreFormatter.strings file to the scoreloop directory of your game project. Make sure to first create the scoreloop subdirectory.
Use the client instance to get the score formatter by calling SC_Client_GetScoreFormatter().
Steps 3 and 4 can be implemented in the load Leaderboard Completion callback or wherever you want to display scores (for example, during score submission).
See Leaderboards for sample code to integrate the score formatter.
Last modified: 2014-05-14