1
0
forked from noxious/client

Load tiles before showing map editor UI

This commit is contained in:
2025-01-22 00:31:14 +01:00
parent 7dccb73698
commit 2d48f83802
5 changed files with 17 additions and 41 deletions

View File

@ -216,10 +216,6 @@ onMounted(async () => {
scene.input.on(Phaser.Input.Events.POINTER_DOWN, tilePicker)
})
onBeforeMount(async () => {
await loadAllTilesIntoScene(scene)
})
onUnmounted(() => {
scene.input.off(Phaser.Input.Events.POINTER_MOVE, pencil)
scene.input.off(Phaser.Input.Events.POINTER_MOVE, eraser)