npm run format
This commit is contained in:
parent
4cf6e68703
commit
6e6c6f9b9e
@ -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
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user