Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion COMPANERO.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ Los consumibles no suman a ese total: cuestan de 5 a 15 y son opcionales.
- **Vínculo:** +1 por cada cuidado y +3 extra al cumplir el deseo de la visita. Una misma acción gratuita suma como mucho una vez cada 30 segundos, pero se puede hacer siempre.
- **Cinco niveles**, a los 0, 10, 25, 50 y 100 puntos. El 100 es el máximo y se muestra desde el principio.
- **Un deseo por visita**, distinto del de la visita anterior: probar una comida, un baño de burbujas, algo nuevo para ponerse, jugar o caricias. Primero se elige el tipo, todos igual de probables, y después cuál comida: así las siete comidas no acaparan los deseos.
- **Escenas:** comer lleva la comida a la boca, el jabón da un baño de burbujas y jugar trae una pelota que rebota. Con movimiento reducido se ve la misma escena, quieta.
- **Tocarlo:** responde con risa, guiño, sonrojo o un giro, nunca dos veces seguidas igual, y vuelve a mostrar su deseo. Cinco toques en 3 segundos lo marean un momento: es un gesto gracioso, no un castigo. Suma vínculo con la regla de 30 segundos y no da monedas.
- **Escenas:** comer lleva la comida a la boca, el jabón da un baño de burbujas y jugar trae una pelota que rebota. Al comer mastica («ñam») y en el baño se sonroja. Con movimiento reducido se ve la misma escena, quieta.

## Datos

Expand Down
4 changes: 2 additions & 2 deletions design/companero/expresiones.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"nota": "Expresiones del compañero (#9, #18). Solo cambian ojos y boca; las coordenadas copian las de cada cara. tipo: punto (ojo oscuro), pupila (búho: pupila sobre el disco claro) o panda (ojo claro con pupila sobre la mancha). Sin boca: el búho (pico) y el conejo (dientes).",
"expresiones": ["contento", "feliz", "antojado", "dormido", "sorprendido"],
"nota": "Expresiones del compañero (#9, #18, #33). Solo cambian ojos y boca; las coordenadas copian las de cada cara. tipo: punto (ojo oscuro), pupila (búho: pupila sobre el disco claro) o panda (ojo claro con pupila sobre la mancha). Sin boca: el búho (pico) y el conejo (dientes).",
"expresiones": ["contento", "feliz", "antojado", "dormido", "sorprendido", "guino", "sonrojado", "mareado", "nam"],
"animales": {
"fox": { "tipo": "punto", "color": "#3A2620", "ojos": [[46, 58, 5], [74, 58, 5]], "boca": { "d": "M54 82c2 3 10 3 12 0", "cx": 60, "cy": 83.5, "ancho": 12 } },
"owl": { "tipo": "pupila", "color": "#2C2620", "ojos": [[45, 52, 6.5], [75, 52, 6.5]] },
Expand Down
8 changes: 4 additions & 4 deletions design/companero/expresiones.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// The companion's five expressions (#9, #18): contento (the face as drawn), feliz, antojado,
// dormido and sorprendido. Only the eyes and the mouth change: the face's own eyes and mouth are
// The companion's expressions (#9, #18, #33): contento (the face as drawn), feliz, antojado,
// dormido, sorprendido, guino (a wink), sonrojado (blushing), mareado (dizzy) and nam (chewing). Only the eyes and the mouth change: the face's own eyes and mouth are
// taken out and new ones, marked data-expr, are drawn at the same coordinates (expresiones.json).
// Run on its own, it writes the 40 animal and expression pairs to expresiones/ and checks them:
// Run on its own, it writes the 72 animal and expression pairs to expresiones/ and checks them:
// valid SVG in headless Chrome, and nothing but the eyes, the mouth and the sleeping «z» differs
// from the contento face.
// Usage: node design/companero/expresiones.mjs
Expand Down Expand Up @@ -68,5 +68,5 @@ document.getElementById("r").textContent=JSON.stringify(t.map((s,i)=>new DOMPars
fallas.forEach((f) => console.error("✗ " + f));
const fuera = fallas.filter((f) => f.includes("fuera de ojos")).length;
console.log(`${archivos.length} expresiones, ${fuera} diferencias fuera de rasgos`);
if (archivos.length !== 40 || fallas.length) process.exit(1);
if (archivos.length !== Object.keys(datos.animales).length * expresiones.length || fallas.length) process.exit(1);
}
10 changes: 10 additions & 0 deletions design/companero/expresiones/bear-guino.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions design/companero/expresiones/bear-mareado.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions design/companero/expresiones/bear-nam.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions design/companero/expresiones/bear-sonrojado.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions design/companero/expresiones/capybara-guino.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions design/companero/expresiones/capybara-mareado.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions design/companero/expresiones/capybara-nam.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions design/companero/expresiones/capybara-sonrojado.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions design/companero/expresiones/cat-guino.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions design/companero/expresiones/cat-mareado.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading