Skip to content

Companion: wanting to eat, play and bathe, growing as you play (#39) - #44

Merged
cmena92 merged 1 commit into
mainfrom
feat/39-ganas
Nov 4, 2026
Merged

cmena92 merged 1 commit into
mainfrom
feat/39-ganas

Conversation

@cmena92

@cmena92 cmena92 commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Closes #39

The companion now wants things, and «wishes, never needs» still holds (owner's decision, 2026-11-03).

The rule

  • Ganas (eat, play, bathe), from 0 to 3, grow with games finished in the whole app: one level every 3, 4 and 5 games.
    • The count is read from C.stats.get().plays, which the companion never writes.
    • Time away never counts: a year with no games leaves them as they were.
  • At 3:
    • the bubble says it in words of wanting («All that playing gave me an appetite!»), and the visit's wish stays as it was;
    • the companion opens eager.
  • Tending: any food, play or the soap brings the gana back to 0, with +2 bond when it had reached 2.
  • Left alone: nothing happens. No sad face, no lost bond.
  • On screen: three small gauges under the bond, each with a name for a screen reader.

Saved data

  • Each gana keeps the game count it was last tended at, saved at once.
  • Games played before this never count, and a saved care keeps its bond.
  • If the core's stats are erased, the counts come down instead of breaking.

Checks run locally

  • node tools/test-companero.js: 271 green, twice in a row. New:
    • thresholds 3/4/5 and the cap of 3 (after 3, 5 and 35 games);
    • a year away with no games changes nothing, and a year at the top keeps them at 3;
    • each kind of care tends only its own gana; +2 only from level 2;
    • an old saved care keeps its bond; the core's stats are never written.
  • New, in a real browser:
    • gauges at their levels; the bubble speaks the gana at 3 with an eager face;
    • feeding brings it to 0.
  • The three new texts in the five languages pass the words-of-need check.
  • node tools/test.js: 5,610 green · ./tools/browser-check.sh: 52 of 52.
  • Screenshots in Spanish (light) and Persian (dark), checked by the owner's agent.

The companion now wants things, and «wishes, never needs» still holds:
its ganas grow with the games finished in the whole app, read from the
core's stats and never written, and never with time away. One level
more every 3 games (eat), 4 (play) and 5 (bathe), up to 3; a year with
no games leaves them as they were.

At 3 the bubble says it, in words of wanting («All that playing gave me
an appetite!»), and the companion opens eager. Any food, play or the
soap brings its gana back to 0, with +2 bond when it had reached 2.
Left alone, nothing happens. Three small gauges sit under the bond,
each with a name for a screen reader.

Each gana keeps the game count it was last tended at, saved at once, so
games played before this never count, a saved care keeps its bond, and
erased stats bring the counts down instead of breaking.
@cmena92
cmena92 merged commit c9167a2 into main Nov 4, 2026
3 checks passed
@cmena92
cmena92 deleted the feat/39-ganas branch November 4, 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: ganas de comer, jugar y bañarse que crecen jugando

1 participant