Improve pet habitat UX with ground-aligned walk, floating rename, and demo points.

Anchor room floors on resize, constrain wandering to a ground zone, add an editable floating name badge on the avatar screen, and let profile demo tools grant 100 test points.
This commit is contained in:
2026-05-24 09:33:08 -06:00
parent cd4f7bc7e0
commit 19b0ece147
9 changed files with 357 additions and 24 deletions

View File

@@ -1,14 +1,17 @@
/** Percentage bounds for pet wander within the LCD viewport. */
/** Ground band height as a fraction of the LCD — matches room PNG floor (~bottom 22%). */
export const PET_GROUND_ZONE_HEIGHT_RATIO = 0.22;
/** Wander bounds inside the ground zone (not the full LCD). */
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,
/** Vertical offset from floor, as % of ground zone height (0 = feet on floor) */
minY: 0,
maxY: 65,
} as const;
export const PET_WANDER_START = {
x: 50,
y: 78,
y: 12,
} as const;