Cache audio
This commit is contained in:
@ -27,13 +27,13 @@ import Hotkeys from '@/components/game/gui/Hotkeys.vue'
|
||||
import Hud from '@/components/game/gui/Hud.vue'
|
||||
import Menu from '@/components/game/gui/Menu.vue'
|
||||
import Map from '@/components/game/map/Map.vue'
|
||||
import { useGameComposable } from '@/composables/useGameComposable'
|
||||
import { useSoundComposable } from '@/composables/useSoundComposable'
|
||||
import { useGameStore } from '@/stores/gameStore'
|
||||
import { Game, Scene } from 'phavuer'
|
||||
import { onMounted } from 'vue'
|
||||
|
||||
const gameStore = useGameStore()
|
||||
const { playSound, stopSound } = useGameComposable()
|
||||
const { playSound, stopSound } = useSoundComposable()
|
||||
|
||||
const gameConfig = {
|
||||
name: config.name,
|
||||
|
Reference in New Issue
Block a user