npm update, cleaned code

This commit is contained in:
2024-09-19 09:39:21 +02:00
parent 60a67f7afc
commit 835b6bcc3a
5 changed files with 110 additions and 118 deletions

View File

@ -47,7 +47,6 @@ import TeleportModal from '@/components/gameMaster/zoneEditor/partials/TeleportM
import Tilemap = Phaser.Tilemaps.Tilemap
import TilemapLayer = Phaser.Tilemaps.TilemapLayer
/**
* @TODO:
* Clean all the code in this file
@ -88,7 +87,7 @@ function createTileLayer() {
const layer = zoneTilemap.createBlankLayer('tiles', tilesetImages as any, 0, config.tile_size.y) as Phaser.Tilemaps.TilemapLayer
layer.setDepth(0)
return layer
}

View File

@ -158,7 +158,7 @@ const createText = (text: Phaser.GameObjects.Text) => {
onMounted(() => {
if (props.character) {
updatePosition(props.character.positionX, props.character.positionY, Direction.Positive)
updatePosition(props.character.positionX, props.character.positionY, Direction.POSITIVE)
}
})