PlayerIO

The fastest way to build online games without breaking a sweat.

HTML5 (Javascript) Client Reference

javascript (html5) oneScoreValue class informationClass oneScoreValue

Language: Javascript (HTML5)

This class encapsulates the OneScore value for a single user. It contains the user's score, as well as the user's global rank.

Properties

 
percentile :Number

The percentile compared to all other players. A value from 0 -> 100. A value of 30.0 means you are in the bottom 30% of players. A value of 100 means you are in the top 100% with other players.

score :Number

The score.

topRank :Number

The absolute ranking number -- if you are one of the N top players, then it returns N. 1 means you are the best. Returns 0 if you are not one the top N players. (N is currently 1000.)

oneScoreValue.percentile

percentile :Number

The percentile compared to all other players. A value from 0 -> 100. A value of 30.0 means you are in the bottom 30% of players. A value of 100 means you are in the top 100% with other players.

oneScoreValue.score

score :Number

The score.

oneScoreValue.topRank

topRank :Number

The absolute ranking number -- if you are one of the N top players, then it returns N. 1 means you are the best. Returns 0 if you are not one the top N players. (N is currently 1000.)