Clamp pet wander to lower-third ground zone.

Restrict Y to 66–90% and X to 15–85% with bottom-anchored positioning so the avatar stays on grass instead of sky or walls.
This commit is contained in:
2026-05-24 05:08:03 -06:00
parent 3616cc5c5b
commit 7dab056eba
2 changed files with 23 additions and 7 deletions

14
lib/pet-wander-bounds.ts Normal file
View File

@@ -0,0 +1,14 @@
/** Percentage bounds for pet wander within the LCD viewport. */
export const PET_WANDER_BOUNDS = {
/** Horizontal inset — keep pet off side walls */
minX: 15,
maxX: 85,
/** Lower third of LCD — ground where hills/grass/floor render */
minY: 66,
maxY: 90,
} as const;
export const PET_WANDER_START = {
x: 50,
y: 78,
} as const;