Files
HaBit/lib/pet-wander-bounds.ts
Harkamal Randhawa 7dab056eba 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.
2026-05-24 05:08:03 -06:00

15 lines
349 B
TypeScript

/** 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;