1
0
forked from noxious/client

npm run format

This commit is contained in:
Dennis Postma 2024-09-15 02:06:27 +02:00
parent 4cf6e68703
commit 6e6c6f9b9e
5 changed files with 7 additions and 13 deletions

View File

@ -2,7 +2,7 @@
<div class="overflow-hidden"> <div class="overflow-hidden">
<Notifications /> <Notifications />
<Login v-if="screen === 'login'" /> <Login v-if="screen === 'login'" />
<!-- <Register v-if="screen === 'register'" />--> <!-- <Register v-if="screen === 'register'" />-->
<Characters v-if="screen === 'characters'" /> <Characters v-if="screen === 'characters'" />
<Game v-if="screen === 'game'" /> <Game v-if="screen === 'game'" />
</div> </div>

View File

@ -81,9 +81,7 @@ function createTileLayer() {
} }
function createTileArray() { function createTileArray() {
return Array.from({ length: zoneTilemap.value.height || 0 }, () => return Array.from({ length: zoneTilemap.value.height || 0 }, () => Array.from({ length: zoneTilemap.value.width || 0 }, () => 'blank_tile'))
Array.from({ length: zoneTilemap.value.width || 0 }, () => 'blank_tile')
)
} }
function getObjectImageProps(object: ZoneObject) { function getObjectImageProps(object: ZoneObject) {
@ -174,9 +172,7 @@ function paint() {
// Ensure tileArray is initialized with correct dimensions // Ensure tileArray is initialized with correct dimensions
if (!tileArray.value || tileArray.value.length !== zoneTilemap.value.height) { if (!tileArray.value || tileArray.value.length !== zoneTilemap.value.height) {
tileArray.value = Array.from({ length: zoneTilemap.value.height }, () => tileArray.value = Array.from({ length: zoneTilemap.value.height }, () => Array.from({ length: zoneTilemap.value.width }, () => 'blank_tile'))
Array.from({ length: zoneTilemap.value.width }, () => 'blank_tile')
)
} }
// Set all tiles in the tilemap to the selected tile's id // Set all tiles in the tilemap to the selected tile's id

View File

@ -1,8 +1,8 @@
<template> <template>
<Container v-if="props.character" :x="currentX" :y="currentY"> <Container v-if="props.character" :x="currentX" :y="currentY">
<!-- Start chat bubble --> <!-- Start chat bubble -->
<RoundRectangle :origin-x="0.5" :origin-y="7.5" :fillColor="0xffffff" :width="194" :height="21" :radius="5" /> <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' }" /> <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 --> <!-- End chat bubble -->
<Text @create="createText" :text="props.character.name" :origin-x="0.5" :origin-y="9" /> <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" /> <RoundRectangle :origin-x="0.5" :origin-y="18.5" :fillColor="0xffffff" :width="74" :height="6" :radius="5" />

View File

@ -25,4 +25,4 @@ export function useCameraControls(scene: Phaser.Scene): any {
camera, camera,
isDragging isDragging
} }
} }

View File

@ -77,9 +77,7 @@
<h3 class="m-0 font-medium">Create your character</h3> <h3 class="m-0 font-medium">Create your character</h3>
</template> </template>
<template #modalBody> <template #modalBody> </template>
</template>
</Modal> </Modal>
</template> </template>