4 lines
135 B
JavaScript
4 lines
135 B
JavaScript
|
export async function getLevel(name) {
|
||
|
const level = await fetch("/resources/" + name + ".json")
|
||
|
return await level.json()
|
||
|
}
|