game-engine/modules/utils.js

5 lines
135 B
JavaScript
Raw Normal View History

2024-07-14 02:24:26 -05:00
export async function getLevel(name) {
2024-07-14 10:30:49 -05:00
const level = await fetch("/resources/" + name + ".json");
return await level.json();
}