Add audio

This commit is contained in:
bmathews 2025-11-15 16:33:18 -08:00
parent 077207ca27
commit 7a4792e4e8
7 changed files with 243 additions and 4 deletions

View file

@ -58,6 +58,10 @@ export function textureToUrl(name: string) {
}
}
export function audioToUrl(fileName: string) {
return getUrlForPath(`audio/${fileName}`);
}
export async function loadDetailMapList(name: string) {
const url = getUrlForPath(`textures/${name}`);
const res = await fetch(url);