diff --git a/src/components/gui/Chat.vue b/src/components/gui/Chat.vue index db0b2fc..9f7bffd 100644 --- a/src/components/gui/Chat.vue +++ b/src/components/gui/Chat.vue @@ -79,4 +79,4 @@ onMounted(() => { onBeforeUnmount(() => { gameStore.connection?.off('chat:message') }) - \ No newline at end of file + diff --git a/src/components/gui/Menu.vue b/src/components/gui/Menu.vue index 6ae002f..d4e62b5 100644 --- a/src/components/gui/Menu.vue +++ b/src/components/gui/Menu.vue @@ -1,6 +1,6 @@ + + diff --git a/src/components/sprites/Character.vue b/src/components/sprites/Character.vue index 2d69bea..eaff3ea 100644 --- a/src/components/sprites/Character.vue +++ b/src/components/sprites/Character.vue @@ -1,26 +1,10 @@ @@ -71,17 +55,21 @@ const updatePosition = (x: number, y: number) => { onUpdate: (tween) => { currentX.value = tween.targets[0].x ?? 0 currentY.value = tween.targets[0].y ?? 0 - }, + } }) } -watch(() => props.character, (newChar, oldChar) => { - if (newChar) { - if (!oldChar || newChar.position_x !== oldChar.position_x || newChar.position_y !== oldChar.position_y) { - updatePosition(newChar.position_x, newChar.position_y) +watch( + () => props.character, + (newChar, oldChar) => { + if (newChar) { + if (!oldChar || newChar.position_x !== oldChar.position_x || newChar.position_y !== oldChar.position_y) { + updatePosition(newChar.position_x, newChar.position_y) + } } - } -}, { immediate: true, deep: true }) + }, + { immediate: true, deep: true } +) const charTexture = computed(() => { if (!props.character?.characterType?.sprite) { @@ -102,6 +90,7 @@ const charTexture = computed(() => { }) const createText = (text: Phaser.GameObjects.Text) => { + text.setColor('#ffffff') text.setFontSize(13) text.setFontFamily('Arial') } @@ -117,4 +106,4 @@ onUnmounted(() => { tween.value.stop() } }) - \ No newline at end of file + diff --git a/src/components/utilities/inventory/Inventory.vue b/src/components/utilities/inventory/Inventory.vue index 63bafdb..b6553ec 100644 --- a/src/components/utilities/inventory/Inventory.vue +++ b/src/components/utilities/inventory/Inventory.vue @@ -1,152 +1,150 @@ \ No newline at end of file + + diff --git a/src/config.ts b/src/config.ts index 4a929c1..763f5d6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,4 +1,4 @@ -const dev: boolean = false +const dev: boolean = true export default { name: 'New Quest', diff --git a/src/screens/Characters.vue b/src/screens/Characters.vue index 1cdfb06..228eb19 100644 --- a/src/screens/Characters.vue +++ b/src/screens/Characters.vue @@ -4,7 +4,12 @@
-
+
diff --git a/src/screens/Game.vue b/src/screens/Game.vue index 4f2ea00..897e512 100644 --- a/src/screens/Game.vue +++ b/src/screens/Game.vue @@ -1,18 +1,20 @@