1
0
forked from noxious/client
This commit is contained in:
Dennis Postma 2024-08-27 00:04:40 +02:00
parent ec3335f4f4
commit 90b722b07c

View File

@ -86,7 +86,7 @@ watch(
const charTexture = computed(() => { const charTexture = computed(() => {
if (!props.character?.characterType?.sprite) { if (!props.character?.characterType?.sprite) {
return 'idle_left_down' return 'idle_right_down'
} }
const rotation = props.character.rotation const rotation = props.character.rotation
@ -94,9 +94,9 @@ const charTexture = computed(() => {
const action = props.character.isMoving ? 'walk' : 'idle' const action = props.character.isMoving ? 'walk' : 'idle'
if (rotation === 2 || rotation === 4) { if (rotation === 2 || rotation === 4) {
return `${spriteId}-${action}_left_down` return `${spriteId}-${action}_left_up`
} else if (rotation === 0 || rotation === 6) { } else if (rotation === 0 || rotation === 6) {
return `${spriteId}-${action}_right_up` return `${spriteId}-${action}_right_down`
} }
return `${spriteId}-${action}_left_down` // Default fallback return `${spriteId}-${action}_left_down` // Default fallback