Fix sprite directions — swap Up and Left frame offsets to match actual sheet layout

This commit is contained in:
justin committed 2026-05-14 13:51:56 -07:00
1 parent 478944b8b6
commit b0768841f1
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -348,7 +348,7 @@ class Game {
p.className = 'map-player idle';
/* Show the idle/middle frame for the last direction walked
Frames at 2× scale (32px each): down=32, up=128, left=224, right=320 */
const idleFrames = { down:'-32px', up:'-128px', left:'-224px', right:'-320px' };
const idleFrames = { down:'-32px', left:'-128px', up:'-224px', right:'-320px' };
p.style.backgroundPositionX = idleFrames[this.state.lastDir] || '-32px';
}
}