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:
@@ -1,5 +1,8 @@
|
||||
export const DEFAULT_STARTING_COINS = 100;
|
||||
|
||||
/** Demo grant amount from Profile → Demo tools. */
|
||||
export const DEMO_COINS_GRANT = 100;
|
||||
|
||||
export const COINS_PER_TASK_COMPLETE = 50;
|
||||
export const COINS_PER_TASK_UNCHECK = -50;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user