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:
14
lib/pet-wander-bounds.ts
Normal file
14
lib/pet-wander-bounds.ts
Normal 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;
|
||||
Reference in New Issue
Block a user