Minor improvements

This commit is contained in:
2024-09-19 23:42:45 +02:00
parent 858685fe5f
commit 8d30e3a918
2 changed files with 10 additions and 9 deletions

View File

@ -157,10 +157,11 @@ const createScene = (scene: Phaser.Scene) => {
/**
* Watch for changes in assets and reload them
*/
watch(assetStore.assets, (newAssets) => {
watch(() => assetStore.assets, (newAssets) => {
console.log('new assets', newAssets)
newAssets.forEach(() => {
loadAssets(scene)
})
}, { deep: true })
scene.load.start()
})