From 90b722b07c4a5d6ad01d98b28a7764a1147a18f9 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Tue, 27 Aug 2024 00:04:40 +0200 Subject: [PATCH] Anim fix --- src/components/sprites/Character.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/sprites/Character.vue b/src/components/sprites/Character.vue index 2ff0524..e65383f 100644 --- a/src/components/sprites/Character.vue +++ b/src/components/sprites/Character.vue @@ -86,7 +86,7 @@ watch( const charTexture = computed(() => { if (!props.character?.characterType?.sprite) { - return 'idle_left_down' + return 'idle_right_down' } const rotation = props.character.rotation @@ -94,9 +94,9 @@ const charTexture = computed(() => { const action = props.character.isMoving ? 'walk' : 'idle' if (rotation === 2 || rotation === 4) { - return `${spriteId}-${action}_left_down` + return `${spriteId}-${action}_left_up` } else if (rotation === 0 || rotation === 6) { - return `${spriteId}-${action}_right_up` + return `${spriteId}-${action}_right_down` } return `${spriteId}-${action}_left_down` // Default fallback