Documentation / @debuffjp/share / challengeLink
Function: challengeLink()
challengeLink(
data,base?):string
Defined in: link.ts:29
A link that opens this game with data attached, for "beat my run" sharing. Pair it with a seeded game.random so the friend plays the same run.
ts
const url = challengeLink({ seed: game.random.seed, score: 4200 });The data is visible in the URL, so put game state in it, never anything personal.
Parameters
data
base?
string = location.href
Returns
string