Skip to content

Companion: eating, bathing and playing shown, and four new foods (#32) - #36

Merged
cmena92 merged 1 commit into
mainfrom
feat/32-reacciones
Oct 30, 2026
Merged

cmena92 merged 1 commit into
mainfrom
feat/32-reacciones

Conversation

@cmena92

@cmena92 cmena92 commented Oct 30, 2026

Copy link
Copy Markdown
Owner

Closes #32

Art (in design/companero/, reviewed before wiring)

  • comidas/: the eight consumables, drawn in the companion's style. The four of Cuidado, deseos amables y expresiones del compañero #9 lose their emoji (no dependence on the phone's font). New: watermelon, cookie, ice cream, herbal tea.
  • escenas.json + escenas.mjs:
    • the food rests by each animal's mouth (the owl's beak, the rabbit's teeth);
    • bubbles go around the body;
    • a beach ball sits at its feet.
  • The check: headless Chrome on the eight animals, dressed. It prints «72 escenas, 0 fallas»: nothing leaves the frame, no bubble or ball covers the face, and every food sits by the mouth. It caught two real problems on the way (food too far, a bubble on the face), now fixed.
  • vista-previa.html has a new section with the foods and the three scenes.

App

  • www/games/companero/escenas.js: one source for the app and the art.
    • It draws a layer over the dressed companion. Its resting pose is the still picture shown under reduced motion.
    • The page's CSS moves it for two seconds: the food goes to the mouth and is eaten, the bubbles rise and pop, the ball bounces.
    • A new care replaces the running scene at once.
  • New foods: watermelon 6, cookie 7, ice cream 12 and herbal tea 9, with their wishes in the five languages (checked against the words of need). Care now shows eight consumables.
  • Wishes pick their kind first, all equally likely: a food, a bath, clothes, play or a cuddle. Without this, the seven foods would have been 7 of 11 wishes.
  • COMPANERO.md lists the new prices.

Checks run locally

  • node tools/test-companero.js: 228 green. New:
    • prices and the consumables' order;
    • the five kinds of wish equally likely over 100 even dice;
    • foods, mouths and bubbles in arte.js identical to design/;
    • the 72-scene check itself.
  • New, in a real browser:
    • every consumable shows its drawing (no emoji);
    • ice cream → an animated eating scene that ends within 2.5 s;
    • soap → bath; play → the ball, replacing the bath at once;
    • petting → no scene;
    • under reduced motion, a cookie still by the mouth with no animation.
  • node tools/test.js: 5,610 green · ./tools/browser-check.sh: 52 of 52.
  • Screenshots at 390 px of the care row and each scene mid-motion, checked by the owner's agent.

Art first, in design/companero/:
- comidas/: the eight consumables drawn in the companion's style (the
  four of #9 replace their emoji, plus watermelon, cookie, ice cream and
  herbal tea);
- escenas.json and escenas.mjs: the food resting by each animal's mouth
  (the owl's beak, the rabbit's teeth), bubbles around the body and a
  beach ball at its feet, checked in headless Chrome on the eight
  animals dressed: 72 scenes, none leaving the frame or covering the
  face, every food by the mouth. The preview sheet shows them.

In the app, www/games/companero/escenas.js is the one source for both:
a layer over the dressed companion whose resting pose is the still
picture under reduced motion; the page's CSS moves it (the food goes to
the mouth and is eaten, bubbles rise and pop, the ball bounces) for two
seconds, and a new care replaces it at once.

Watermelon 6, cookie 7, ice cream 12 and herbal tea 9 join the catalogue
with their wishes in five languages. A wish now picks its kind first,
all as likely (a food, a bath, clothes, play, a cuddle), so seven foods
do not crowd out the rest. COMPANERO.md lists the new prices.
@cmena92
cmena92 merged commit a493266 into main Oct 30, 2026
3 checks passed
@cmena92
cmena92 deleted the feat/32-reacciones branch October 30, 2026 10:14
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: comer, bañarse y jugar con animación, y cuatro comidas nuevas

1 participant