1
0
forked from noxious/client

Commented out chat bubble, removed old comment

This commit is contained in:
Dennis Postma 2024-09-15 21:07:48 +02:00
parent 4711dd3258
commit 6d5c3ab3b3
2 changed files with 2 additions and 3 deletions

View File

@ -1,8 +1,8 @@
<template>
<Container :depth="999" v-if="props.character" :x="currentX" :y="currentY">
<!-- Start chat bubble -->
<RoundRectangle :origin-x="0.5" :origin-y="7.5" :fillColor="0xffffff" :width="194" :height="21" :radius="5" />
<Text @create="createText" :text="`This is a chat message 🤯👋`" :origin-x="0.5" :origin-y="10.9" :style="{ fontSize: 13, fontFamily: 'Arial', color: '#000' }" />
<!-- <RoundRectangle :origin-x="0.5" :origin-y="7.5" :fillColor="0xffffff" :width="194" :height="21" :radius="5" />-->
<!-- <Text @create="createText" :text="`This is a chat message 🤯👋`" :origin-x="0.5" :origin-y="10.9" :style="{ fontSize: 13, fontFamily: 'Arial', color: '#000' }" />-->
<!-- End chat bubble -->
<Text @create="createText" :text="props.character.name" :origin-x="0.5" :origin-y="9" />
<RoundRectangle :origin-x="0.5" :origin-y="18.5" :fillColor="0xffffff" :width="74" :height="6" :radius="5" />

View File

@ -44,7 +44,6 @@ export function setAllTiles(zone: Tilemap, layer: TilemapLayer, tiles: string[][
export const calculateIsometricDepth = (x: number, y: number, width: number = 0, height: number = 0, isCharacter: boolean = false) => {
const baseDepth = x + y
if (isCharacter) {
// Increase the offset for characters to ensure they're always on top
return baseDepth // @TODO: Fix collision, this is a hack
}