feat(#3): create level loader (#4)

Reviewed-on: jusemon/evolver#4
This commit is contained in:
Juan Sebastián Montoya 2024-07-18 21:35:23 -05:00
parent c8799e833c
commit a3d420b3a6
26 changed files with 708 additions and 1627 deletions

4
modules/utils.js Normal file
View file

@ -0,0 +1,4 @@
export async function getLevel(name) {
const level = await fetch("/resources/" + name + ".json");
return await level.json();
}