Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

createScoreId

createScoreId(authority): ScoreId

Draws a delta’s id for a total, carrying the time of the room’s tick, from the room’s own random stream, so a replay draws the same. The game keeps it with the event that earned the delta: submitted again within the hour, the delta adds once; after it, submitScore refuses it as expired.

Parameter Type
authority Authority

ScoreId

const id = createScoreId(step);
submitScore(step, leaderboards.coinsFound, player, { delta: 12, id });