Skip to content

Companion: it reacts to a touch, with four new faces (#33) - #37

Merged
cmena92 merged 1 commit into
mainfrom
feat/33-expresiones
Oct 31, 2026
Merged

cmena92 merged 1 commit into
mainfrom
feat/33-expresiones

Conversation

@cmena92

@cmena92 cmena92 commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Closes #33

Art (reviewed before wiring)

Four new faces in the one source www/games/companero/expresiones.js. As in #18, only the eyes and the mouth change:

  • guino: a wink, with a closed smile;
  • sonrojado: pink cheeks and happy eyes;
  • mareado: spiral eyes and a wobbly mouth;
  • nam: chewing, with a «w» mouth.

node design/companero/expresiones.mjs → «72 expresiones, 0 diferencias fuera de rasgos». The preview sheet shows all nine.

App

  • Touching the companion (or Enter) shows its wish and gets a short reaction:
    • a laugh, a wink, a blush or a spin, never the same twice running;
    • five touches within 3 s leave it dizzy for 2 s: a funny face, never a punishment;
    • a touch adds bond under the same 30 s rule as the free actions, and never touches coins.
  • Eating chews (ñam) and a bubble bath blushes. A fulfilled wish is still joy.
  • Under reduced motion, the spin is just the happy face.

One fix found while checking

The wish bubble covered a hat. The card now keeps room above the drawing, and a new test sets every wish and the thanks, in the five languages, at 390 px, and checks that none covers the companion.

Checks run locally

  • node tools/test-companero.js: 243 green, twice in a row. New:
    • tocar adds bond under the 30 s rule and is not a Care button;
    • the 72 faces identical to the approved art, and the art check itself.
  • New, in a real browser:
    • four taps give allowed reactions with their faces, none repeated in a row, no dizziness;
    • the fifth tap within 3 s → dizzy, which goes away on its own;
    • coins untouched, bond +1 once;
    • eating → ñam, a bath → blush;
    • the spin under reduced motion has no animation (dice fixed, so the check never depends on luck).
  • node tools/test.js: 5,610 green · ./tools/browser-check.sh: 52 of 52.
  • Screenshots of a wink, the dizzy face and eating, checked by the owner's agent.

Art first: guino (a wink), sonrojado (pink cheeks, happy eyes), mareado
(spiral eyes, a wobbly mouth) and nam (chewing, a «w» mouth), in the one
source www/games/companero/expresiones.js. design/companero/expresiones.mjs
now checks 72 pairs, 0 differences outside the eyes and the mouth.

In the app:
- Touching the companion (or Enter) shows its wish and gets a short
  reaction that is never the same twice running: a laugh, a wink, a
  blush or a spin. Five touches within 3 s leave it dizzy for 2 s, a
  funny face and never a punishment. A touch adds bond under the same
  30 s rule as the free actions and never touches coins.
- Eating chews (nam) and a bubble bath blushes; a fulfilled wish is
  still joy.
- Under reduced motion the spin is just the happy face.

One fix found while checking: the wish bubble covered a hat. The card
now keeps room above the drawing, and a test runs every wish in the
five languages at 390 px to make sure none covers the companion.
@cmena92
cmena92 merged commit 491e6e9 into main Oct 31, 2026
3 checks passed
@cmena92
cmena92 deleted the feat/33-expresiones branch October 31, 2026 01:50
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: tocarlo para que reaccione, y cuatro expresiones nuevas

1 participant