diff --git a/src/App.vue b/src/App.vue index 6961341..28eafaa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -11,7 +11,6 @@ import { useZoneEditorStore } from '@/stores/zoneEditorStore' import Notifications from '@/components/utilities/Notifications.vue' import GmTools from '@/components/gameMaster/GmTools.vue' import GmPanel from '@/components/gameMaster/GmPanel.vue' -import Loading from '@/screens/Loading.vue' import Login from '@/screens/Login.vue' import Characters from '@/screens/Characters.vue' import Game from '@/screens/Game.vue' @@ -22,7 +21,6 @@ const gameStore = useGameStore() const zoneEditorStore = useZoneEditorStore() const currentScreen = computed(() => { - // if (!gameStore.game.isLoaded) return Loading if (!gameStore.connection) return Login if (!gameStore.token) return Login if (!gameStore.character) return Characters diff --git a/src/screens/Loading.vue b/src/screens/Loading.vue index a82c0bb..68165e9 100644 --- a/src/screens/Loading.vue +++ b/src/screens/Loading.vue @@ -1,15 +1,11 @@ @@ -19,6 +15,11 @@ import { useGameStore } from '@/stores/gameStore' const gameStore = useGameStore() function continueBtnClick() { + // Play music + const audio = new Audio('/assets/music/login.mp3') + audio.play() + + // Set isLoaded to true gameStore.game.isLoaded = true } diff --git a/src/screens/Login.vue b/src/screens/Login.vue index 529be5d..7602568 100644 --- a/src/screens/Login.vue +++ b/src/screens/Login.vue @@ -1,14 +1,16 @@