feat(audio): audio system

This commit is contained in:
2026-02-24 17:34:01 +01:00
parent 14f460e967
commit 51a446d7b8
3 changed files with 74 additions and 3 deletions

View File

@@ -2,13 +2,18 @@
const app = useAppStore();
const { isReady } = useAssets();
const { t } = useI18n();
const onClick = () => {
if (!isReady.value) return;
app.userHasInteracted = true;
};
</script>
<template>
<div
class="fixed inset-0 bg-[#181818] flex flex-col items-center justify-center gap-4"
:class="{ 'cursor-pointer': isReady }"
@click="isReady && (app.userHasInteracted = true)"
@click="onClick"
>
<svg
viewBox="0 0 512 512"