const statsUrl: BpxJsonUrl = "level.ldtk"; // refers to `./public/stats.json`
const levelUrl: BpxJsonUrl = "https://the.url/of/level.ldtk";
let stats: BpxJsonAsset;
let level: BpxJsonAsset;
$x.setOnStarted(() => {
const stats: BpxJsonAsset = $x.getJsonAsset(statsUrl);
const level: BpxJsonAsset = $x.getJsonAsset(levelUrl);
});
$x.start({
// ...,
assets: [
statsUrl,
levelUrl,
],
});
A content of the fetched JSON file.