Fix A/B overlap in landscape using fixed positioning; fix player idle frame to use lastDir

This commit is contained in:
Justin Oros
2026-05-21 09:22:19 -07:00
parent b7cb41687b
commit cb1d750f25
2 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -554,7 +554,7 @@ class Game {
p.style.left = cx + 'px';
p.style.bottom = bot + 'px';
p.className = 'map-player idle';
p.style.backgroundPositionX = idleFrames[this.state.pathDir] || '-32px';
p.style.backgroundPositionX = idleFrames[this.state.lastDir] || '-32px';
if (bub) { bub.style.left = (cx - 4) + 'px'; bub.style.bottom = (bot + 66) + 'px'; }
}
this._applyCamera();