game-engine/modules/utils.js

4 lines
135 B
JavaScript
Raw Normal View History

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