1
0
forked from noxious/client

Worked on zone manager

This commit is contained in:
2024-06-11 01:10:22 +02:00
parent 399e994bbe
commit 8e174a063a
29 changed files with 658 additions and 379 deletions

View File

@ -4,7 +4,7 @@
<script setup lang="ts">
import { Image, useScene } from 'phavuer'
import { ref } from 'vue'
import { onBeforeUnmount, ref } from 'vue'
import config from '@/config'
import { getTile, tileToWorldXY } from '@/services/zone'
@ -37,4 +37,8 @@ function onPointerMove(pointer: Phaser.Input.Pointer) {
}
scene.input.on(Phaser.Input.Events.POINTER_MOVE, onPointerMove)
onBeforeUnmount(() => {
scene.input.off(Phaser.Input.Events.POINTER_MOVE, onPointerMove)
})
</script>