Get a loaded LDtk project (an "ldtk" asset): its levels with their ids, sizes, fields and neighbours, its worlds, and the definitions they are read with. Most code never needs it: level.load("<name>:<level>") builds a level from it.
"ldtk"
level.load("<name>:<level>")
the asset name
the project, or null if none is loaded under that name
null
for (const info of loader.getLDtk("world").levels) { console.log(info.id, info.width, info.height);} Copy
for (const info of loader.getLDtk("world").levels) { console.log(info.id, info.width, info.height);}
Get a loaded LDtk project (an
"ldtk"asset): its levels with their ids, sizes, fields and neighbours, its worlds, and the definitions they are read with. Most code never needs it:level.load("<name>:<level>")builds a level from it.