Moved music to character selection screen, disable loader

This commit is contained in:
Dennis Postma 2024-11-02 16:02:43 +01:00
parent e2c60bfd5a
commit 7e4e613405
2 changed files with 3 additions and 1 deletions

View File

@ -114,6 +114,9 @@ gameStore.connection?.on('character:list', (data: any) => {
}) })
onMounted(async () => { onMounted(async () => {
const audio = new Audio('/assets/music/login.mp3')
await audio.play()
// wait 0.75 sec // wait 0.75 sec
setTimeout(() => { setTimeout(() => {
gameStore.connection?.emit('character:list') gameStore.connection?.emit('character:list')

View File

@ -1,5 +1,4 @@
<template> <template>
<Loading v-if="!gameStore.game.isLoaded" />
<!-- @TODO this must be shown over the login screen --> <!-- @TODO this must be shown over the login screen -->
<div class="relative max-lg:h-dvh flex flex-row-reverse"> <div class="relative max-lg:h-dvh flex flex-row-reverse">
<ResetPassword /> <ResetPassword />