Added container for character for easier X and Y coord handling

This commit is contained in:
2025-02-01 15:27:14 +01:00
parent e4b9bb4d61
commit af26ca5e89
5 changed files with 33 additions and 36 deletions

View File

@ -1,5 +1,5 @@
<template>
<Container :depth="999" :x="currentX" :y="currentY">
<Container :depth="999">
<Text @create="createNicknameText" :text="props.mapCharacter.character.name" />
<RoundRectangle :origin-x="0.5" :origin-y="18.5" :fillColor="0xffffff" :width="74" :height="6" :radius="5" />
<RoundRectangle :origin-x="0.5" :origin-y="36.4" :fillColor="0x00b3b3" :width="70" :height="3" :radius="5" />
@ -12,8 +12,6 @@ import { Container, RoundRectangle, Text, useGame } from 'phavuer'
const props = defineProps<{
mapCharacter: MapCharacter
currentX: number
currentY: number
}>()
const game = useGame()