Reference · Load level collections
levelSeedfunction
The number a record keeps a level by: its own for the first set, TSUNAGI_PORTAL_SEED and its number for the portals.
Import it
import { levelSeed } from "@johnmorrisdotca/tsunagi/levels";
Also exported from: @johnmorrisdotca/tsunagi
Definition
function levelSeed(set: TsunagiSet, level: number): number
Parameters
| Name | Type | Description |
|---|---|---|
set | TsunagiSet | The native level set or palette specified by the signature. |
level | number | The one-based level number. |
Returns
number
The number a record keeps a level by: its own for the first set, TSUNAGI_PORTAL_SEED and its number for the portals.
Examples
import { levelSeed } from "@johnmorrisdotca/tsunagi/levels";
console.log(levelSeed("portals",1));1001What it prints (run when this page was built)