Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

arena: apply hoverFlipMode to walked-tile detection

Now that hover raycast uses flipXZ, the player's walked-tile trail must
use the same flip convention so the yellow highlight squares align with
the actual game world grid.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+6 -1
+6 -1
system/public/aesthetic.computer/disks/arena.mjs
··· 509 509 if (!playerAlive) deathTickAge += 1; 510 510 511 511 // --- Walked-tile trail: when the player's current tile changes, stamp it. --- 512 - const curTile = tileAt(pWorldX, pWorldZ); 512 + // Apply the same hoverFlipMode flip to player position so walked tiles match raycast. 513 + const flipX = (hoverFlipMode & 1) !== 0; 514 + const flipZ = (hoverFlipMode & 2) !== 0; 515 + const playerX = flipX ? -pWorldX : pWorldX; 516 + const playerZ = flipZ ? -pWorldZ : pWorldZ; 517 + const curTile = tileAt(playerX, playerZ); 513 518 if (curTile) { 514 519 const key = tileKey(curTile.row, curTile.col); 515 520 if (!prevPlayerTile || prevPlayerTile !== key) {