Fully finished zone loading logic
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
</Game>
|
||||
<Game :config="gameConfig" @create="createGame" v-if="zoneEditorStore.active">
|
||||
<Scene name="main" @preload="preloadScene" @create="createScene">
|
||||
<ZoneEditor v-if="isLoaded" />
|
||||
<ZoneEditor v-if="isLoaded" :key="zoneEditorStore.zone?.id ?? 0" />
|
||||
</Scene>
|
||||
</Game>
|
||||
</div>
|
||||
@ -160,4 +160,8 @@ const createScene = (scene: Phaser.Scene) => {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// watch(() => zoneEditorStore.zone, () => {
|
||||
// isLoaded.value = false
|
||||
// }, {deep:true});
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user