1
0
forked from noxious/client

Added tile sorting logic, minor improvements

This commit is contained in:
2024-10-19 21:15:13 +02:00
parent 252d9c87fd
commit 6e2885cba6
7 changed files with 215 additions and 67 deletions

View File

@ -113,7 +113,7 @@ const isFlippedX = computed(() => [6, 4].includes(props.character.rotation ?? 0)
const charTexture = computed(() => {
const { rotation, characterType, isMoving } = props.character
const spriteId = characterType?.sprite.id ?? 'idle_right_down'
const spriteId = characterType?.sprite?.id ?? 'idle_right_down'
const action = isMoving ? 'walk' : 'idle'
const direction = [0, 6].includes(rotation) ? 'left_up' : 'right_down'