game-engine/modules/utils.js

5 lines
135 B
JavaScript
Raw Normal View History

export async function getLevel(name) {
const level = await fetch("/resources/" + name + ".json");
return await level.json();
}