Skip to content

Companion: a fixed stage, care first and sliding rows (#31) - #35

Merged
cmena92 merged 1 commit into
mainfrom
feat/31-distribucion
Oct 30, 2026
Merged

cmena92 merged 1 commit into
mainfrom
feat/31-distribucion

Conversation

@cmena92

@cmena92 cmena92 commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Closes #31

Tried on a phone, the whole page scrolled as one. To reach Care, the companion had already left the screen, so a care showed no reaction. Layout only: no new feature, no new art.

Changes

  • Fixed stage: the companion, its wish and its bond stick right under the game bar. The bar already keeps the coins in view. The options scroll under the stage, with no gap for them to show through.
  • Order: Care, Animals, Colours, Clothes.
  • Sliding rows: each section is one row that slides sideways, card by card. It works with a finger, with the keyboard (focus scrolls), or with a mouse wheel while the row can still move. The three clothes rows stay apart. Right to left in Persian.
  • The wish bubble floats over the card and hides after 4 s. Tapping the companion (or Enter) shows it again, and so does fulfilling it. Hiding it never changes the wish or moves the companion.
  • A smaller companion on screens under 600 px high; no transition under reduced motion.

Checks run locally

  • node tools/test-companero.js: 213 green. New, in a real browser at 390 × 740:
    • section order;
    • companion and coins fully on screen after scrolling to the end;
    • the stage flush with the bar;
    • a care's reaction seen without scrolling;
    • six one-line rows that snap;
    • care, animals and colours overflow sideways; the page does not get wider;
    • the bubble hides at 4 s and comes back on tap or Enter, with the same wish and without moving the companion.
  • node tools/test.js: 5,610 green · ./tools/browser-check.sh: 52 of 52.
  • Screenshots at 390 px (Spanish and Persian, top and scrolled) and 1280 px, checked by the owner's agent.

Tried on a phone, the whole page scrolled as one: to reach Care the
companion had already left the screen, so a care showed no reaction.

- The stage (the companion, its wish and its bond) sticks right under
  the game bar, which already keeps the coins in view; the options
  scroll under it.
- Sections go Care, Animals, Colours, Clothes, each one row that slides
  sideways card by card (finger, keyboard, or a mouse wheel while the
  row can still move); the three clothes rows stay apart.
- The wish floats over the card and hides after 4 s; tapping the
  companion (or Enter) shows it again, and so does fulfilling it.
  Hiding it changes nothing about the wish.
- Smaller companion on short screens; no transition under reduced
  motion.
@cmena92
cmena92 merged commit 79be93b into main Oct 30, 2026
3 checks passed
@cmena92
cmena92 deleted the feat/31-distribucion branch October 30, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compañero: escenario fijo, cuidado primero y filas deslizables

1 participant