Repository navigation
Companion: care, kind wishes and expressions (#9) - #27
Merged
Merged
Conversation
«Wishes, never needs». www/games/companero/cuidado.js is pure logic with the clock and the dice passed in: one kind wish per visit, never the last visit's, fulfilled optionally by food, a bubble bath, a new garment, play or a cuddle; a bond of five levels up to 100 points that never goes down, +1 per care and +3 for a fulfilled wish, with each free action adding at most once every 30 s but never blocked. Nothing depends on time away: after 1 hour, 30 days or 1 year the bond, the wish, the face and the coins on opening are the same. The expressions move to www/games/companero/expresiones.js, one source with design/companero/expresiones.mjs; its 40 outputs and the preview are byte for byte the same. The page wears the expression first, then the design, then the clothes: eager while the wish waits, happy for a moment after each care, surprised after a purchase, and asleep only if the screen stays open and untouched for 45 s. The care region is visible: three free actions and four consumables; the bubble and the bond sit by the companion. Reactions are the same face without the jump under reduced motion. A test runs every wish in the five languages against words of need (hunger, sad, dirty, alone, missing and their equivalents).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #9
«Wishes, never needs». The companion can want things, but nothing gets worse with time, nothing is lost by not opening the app, and fulfilling a wish is always optional.
What is here
www/games/companero/cuidado.js: pure logic with the clock and the dice passed in.www/games/companero/expresiones.js: one source withdesign/companero/expresiones.mjs. Its 40 outputs and the preview are byte for byte the same (SHA-256 before and after).files.Checks run locally
node tools/test-companero.js: 151 green. New, with an injected clock and dice:chogan.companero.;node tools/test.js: 5,482 green ·./tools/browser-check.sh: 50 of 50.Note
The consumables show system emoji (🍎 🥕 🍰 🫧). Android draws them with its own font; nothing is downloaded.