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

@ -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>