1
0
forked from noxious/client

Small change

This commit is contained in:
2024-12-30 02:47:49 +01:00
parent e9dfcf7870
commit 90bdf43b64
3 changed files with 4 additions and 12 deletions

View File

@ -156,7 +156,7 @@ onMounted(() => {
zoneStore.setCharacterLoaded(true)
// #146 : Set camera position to character, need to be improved still
scene.cameras.main.startFollow(charContainer.value as Phaser.GameObjects.Container)
// scene.cameras.main.startFollow(charContainer.value as Phaser.GameObjects.Container)
// scene.cameras.main.stopFollow()
}

View File

@ -31,14 +31,6 @@ onUnmounted(() => {
// Event listeners
gameStore.connection!.on('zone:character:teleport', async (data: zoneLoadData) => {
/**
* @TODO : Update character via global event server-side, remove this and listen for it somewhere not here
*/
gameStore.setCharacter({
...gameStore.character!,
zoneId: data.zone.id
})
await loadZoneTilesIntoScene(data.zone, scene)
zoneStore.setZone(data.zone)
zoneStore.setCharacters(data.characters)