<h2>For authors</h2>
<p>This story is ordinary SugarCube. Room prose is written in the room passages. Things, exits, and which verbs they allow are declared in the <strong>Catalog</strong> passage. The story JavaScript only knows generic verbs: look, take, drop, eat, smell, unlock, open.</p>
<<if $lang is "ja">>
<p><<= setup.t("authorsNote")>></p>
<</if>>
<h3>Languages</h3>
<p>The sidebar buttons set <em>$lang</em> to <em>en</em> or <em>ja</em>. Room prose and the look passages each contain both languages. Names, verb labels, hints, and goals live in the <strong>Language</strong> passage under <em>setup.lex</em>. Add a thing in Catalog, then give it a Japanese <em>name</em> under <em>ja.things</em>. Learner's notes live in the <strong>Notes</strong> passage, beside the room, the look, the log line, and the button they explain. Language notes shows them once. A new room or a new action clears them.</p>
<h3>Add another food</h3>
<p>In Catalog, copy the apple block. Change the id, the name, and <em>where</em>. Keep <em>edible: true</em> and the verbs <em>look</em>, <em>take</em>, <em>eat</em>, <em>drop</em>. Write a look passage and point <em>text</em> at it. Eat works immediately. You do not edit the engine. Give it <em>onEat</em> only if it should score a new kindness in <em>setup.goals</em>.</p>
<h3>Add another door</h3>
<p>Copy the front-door block. Set <em>kind: "door"</em>, <em>locked</em>, <em>open</em>, and <em>key</em>. On each room it connects, add an exit with <em>dir</em>, <em>dest</em>, and <em>via</em>. The property is <em>dest</em>, not <em>to</em>, because <em>to</em> is SugarCube's assignment word and will break a <html><em><<set>></em></html>. Exits are ordinary links, listed under the room. A link is only the direction until that room has been visited. Afterward it reads as the direction to the room name. A way with a <em>via</em> door stays plain text until that door is open. To swap a room picture when the door opens, set <em>artOpen</em> and <em>artWhenOpen</em> on the room. PassageHeader already knows how to use those fields.</p>
<h3>Add another room</h3>
<p>Create a passage, tag it <em>room</em>, write the description, and end it with the <em>choices</em> widget. Add the passage name to <em>setup.rooms</em> and to <em>setup.map</em>.</p>
<p>The sidebar is StoryCaption and StoryMenu. It is not a custom shell.</p>
<p class="downloads">
<a href="twee/cozycottagets-source.zip" download="cozycottagets-source.zip">Twee source (zip)</a>
<a href="cozycottagets.html" download="Cozy-Cottage-PAWS.html">Twine HTML</a>
</p>
<p class="note">Import the HTML into Twine 2 with SugarCube 2.37. Catalog, the rooms, and the widgets come in as passages you can edit. The generic verbs come in as Story JavaScript.</p>
<<if $lastRoom>>
<<link `setup.t("backRoom")` `$lastRoom`>><</link>>
<<else>>
<<link `setup.t("backTitle")` "Title">><</link>>
<</if>><<if $lang is "ja">>
<h2>遊び方</h2>
<p>横の欄は SugarCube のメニューそのもの。得点と、親切と、持っているものがそこにある。セーブと最初から、もそこ。</p>
<p>部屋の下のボタンは、その場にあるものが本当にできることだけ。薄いボタンは見えるけれど、使えるまで静か。</p>
<ul class="plain">
<li><strong>取る</strong>は、それがここにあると起きる。</li>
<li><strong>食べる</strong>は、持っているあいだだけ起きる。</li>
<li><strong>鍵を開ける</strong>は、その扉の鍵を持っていると起きる。</li>
<li><strong>開ける</strong>は、鍵が開いてから起きる。</li>
<li>出口は普通のリンク。扉が閉まっているあいだは、ただの文字。</li>
</ul>
<p>親切は四つ。鍵を取る、りんごを食べる、扉を開ける、花の香りをかぐ。全部で三十点。</p>
<p>部屋の下の行は、直前の行動が四つまで。そのとき使っていた言語のまま残る。言語を切り替えると、いちばん新しい一行だけが、新しい言語でもう一度書かれる。行動は一回だけ。同じ一歩を、両方の言葉で読むための行。</p>
<p>ことばのメモは、English と 日本語のすぐ下。押すと、部屋の文と、いちばん新しい行と、見えているボタンの下に、短いメモが一度出る。部屋を移るか、文が変わると消える。</p>
<<else>>
<h2>How to play</h2>
<p>The sidebar is SugarCube's own menu. It keeps your score, your kindnesses, and what you are carrying. Saves and Restart live there too.</p>
<p>Under each room, every button is an action some thing in the room actually offers. A faded button is visible so you can see the action, and it stays quiet until it is usable.</p>
<ul class="plain">
<li><strong>Take</strong> wakes up when the thing is here.</li>
<li><strong>Eat</strong> stays faded until you are carrying the food.</li>
<li><strong>Unlock</strong> stays faded until you are carrying that door's key.</li>
<li><strong>Open</strong> stays faded until the door is unlocked.</li>
<li>An exit is an ordinary link. It stays plain text while a door on that way is still shut.</li>
</ul>
<p>Four kindnesses: get the key, eat the apple, open the door, smell the flowers. Thirty points in all.</p>
<p>The lines under the room keep the last four actions, in the language you were using. Switch language and only the newest line is written again in the new language. You did not do that action twice. The repeated line is there so you can read the same step in both languages.</p>
<p>Language notes sits just under English and 日本語. Press it once to show a short note under the room text, under the latest line, and under each command button. The notes leave when you change rooms or the message changes.</p>
<</if>>
<<if $lastRoom>>
<<link `setup.t("backRoom")` `$lastRoom`>><</link>>
<<else>>
<<link `setup.t("backTitle")` "Title">><</link>>
<</if>><h2><<= setup.t("knapsack")>></h2>
<<set _bag to setup.carried()>>
<<if _bag.length === 0>>
<p><<= setup.t("emptyPockets")>></p>
<<else>>
<ul class="plain">
<<for _item range _bag>>
<li><<= setup.shortName(_item)>></li>
<</for>>
</ul>
<</if>>
<<if $lastRoom>>
<<link `setup.t("backRoom")` `$lastRoom`>><</link>>
<</if>><h2><<= setup.t("kindnesses")>></h2>
<ul class="goals">
<<set _goals to setup.goalIds()>>
<<for _id range _goals>>
<<set _goal to setup.goals[_id]>>
<li @class="$done[_id] ? 'done' : ''">
<span><<= setup.goalLabel(_id)>></span>
<span class="pts"><<if $done[_id]>><<= setup.t("done")>><<else>><<= setup.fill("points", { n: _goal.points })>><</if>></span>
</li>
<</for>>
</ul>
<p class="score"><<= setup.t("score")>> <strong><<= $score>></strong> / <<= setup.maxScore()>></p>
<<if $lastRoom>>
<<link `setup.t("backRoom")` `$lastRoom`>><</link>>
<</if>><h2><<= setup.t("map")>></h2>
<div class="map" @aria-label="setup.t('map')">
<<set _rows to setup.map>>
<<for _row range _rows>>
<<for _cell range _row>>
<<if !_cell>>
<span></span>
<<else>>
<<set _here to _cell === $lastRoom>>
<<set _been to !!$visits[_cell]>>
<div @class="'cell' + (_here ? ' here' : '') + (_been ? ' been' : '')">
<p><<= setup.roomName(_cell)>></p>
<<if setup.rooms[_cell] && setup.rooms[_cell].page>>
<p class="pg"><<= setup.t("page")>> <<= setup.rooms[_cell].page>></p>
<</if>>
</div>
<</if>>
<</for>>
<</for>>
</div>
<p class="note"><<= setup.t("mapNote")>></p>
<<if $lastRoom>>
<<link `setup.t("backRoom")` `$lastRoom`>><</link>>
<</if>><div class="title-screen">
<img class="title-photo" src="art/cottage.jpg" alt="">
<div class="title-scrim"></div>
<div class="title-card">
<div class="card">
<p class="eyebrow"><<= setup.t("eyebrow")>></p>
<h1><<= setup.t("cottage")>></h1>
<p class="lede-paws">PAWS</p>
<p><<= setup.t("sweet")>></p>
<p class="lede"><<= setup.t("titleLede")>></p>
<<button `setup.t("step")` "Cozy Room">>
<<run setup.noteArrived()>>
<</button>>
<<if Save.browser.auto.has(0)>>
<<button `setup.t("continue")`>>
<<run Save.browser.auto.load(0)>>
<</button>>
<</if>>
</div>
</div>
</div><<if $lang is "ja">>
<p>穏やかな寝室。</p>
<p class="air">掛け布団がめくれていて、あなたを待っていたよう。</p>
<<else>>
<p>A peaceful bedroom.</p>
<p class="air">The quilt is turned down, as if you were expected.</p>
<</if>>
<<note `setup.roomNote(passage())`>>
<<choices>><<if $lang is "ja">>
<<if $things["front-door"].open>>
<p>あたたかい部屋。北の木の扉が開いている。</p>
<<else>>
<p>あたたかい部屋。北に木の扉がある。</p>
<</if>>
<p class="air">陽だまりが、床板の上に一本の筋になって伸びている。</p>
<<else>>
<<if $things["front-door"].open>>
<p>A warm room. The wooden door to the north stands open.</p>
<<else>>
<p>A warm room with a wooden door to the north.</p>
<</if>>
<p class="air">Sun lies across the floorboards in one long stripe.</p>
<</if>>
<<note `setup.roomNote(passage())`>>
<<choices>><<if $lang is "ja">>
<p>花のある、小さな庭。</p>
<p class="air">空気は蜂蜜と緑のにおい。</p>
<<else>>
<p>A small garden with flowers.</p>
<p class="air">The air is honey and green.</p>
<</if>>
<<note `setup.roomNote(passage())`>>
<<choices>><<if $lang is "ja">>
<p>小屋の部屋をつなぐ、こぢんまりした廊下。</p>
<p class="air">絨毯が、足音をやわらかくする。</p>
<<else>>
<p>A simple hallway connecting the cottage.</p>
<p class="air">A runner rug softens every step.</p>
<</if>>
<<note `setup.roomNote(passage())`>>
<<choices>><<if $lang is "ja">>
<p>こぢんまりした台所。</p>
<p class="air">冷めていくやかんが、かちかちと音を立てている。</p>
<<else>>
<p>A cozy kitchen.</p>
<p class="air">The kettle ticks as it cools.</p>
<</if>>
<<note `setup.roomNote(passage())`>>
<<choices>><<if tags().includes("room")>>
<<set _src to setup.roomFigure(passage())>>
<<if _src>>
<div class="frame"><img @src="_src" @alt="setup.roomName(passage())"></div>
<</if>>
<header class="place">
<h2><<= setup.roomName(passage())>></h2>
<<if setup.rooms[passage()] && setup.rooms[passage()].page>>
<p class="pg"><<= setup.t("page")>> <<= setup.rooms[passage()].page>></p>
<</if>>
</header>
<</if>><<if not tags().includes("room")>>
<<set $showNotes to false>>
<</if>>
<<if tags().includes("room")>>
<<set $lastRoom to passage()>>
<<if previous() !== passage()>>
<<set $visits[passage()] to ($visits[passage()] || 0) + 1>>
<</if>>
<</if>><div class="cap">
<div class="langs" role="group" aria-label="Language">
<<if $lang is "ja">>
<<button "English" `passage()`>>
<<set $lang to "en">>
<<set $showNotes to false>>
<<run setup.repeatLastLog()>>
<</button>>
<button type="button" class="on" disabled>日本語</button>
<<else>>
<button type="button" class="on" disabled>English</button>
<<button "日本語" `passage()`>>
<<set $lang to "ja">>
<<set $showNotes to false>>
<<run setup.repeatLastLog()>>
<</button>>
<</if>>
</div>
<<button `setup.t("langNotes")` `passage()`>>
<<set $showNotes to true>>
<</button>>
<p class="paws">PAWS</p>
<<if tags().includes("room")>>
<p class="where"><<= setup.roomName(passage())>></p>
<<if setup.rooms[passage()] && setup.rooms[passage()].page>>
<p class="pg"><<= setup.t("page")>> <<= setup.rooms[passage()].page>></p>
<</if>>
<<elseif $lastRoom>>
<p class="where"><<= setup.roomName($lastRoom)>></p>
<<else>>
<p class="where"><<= setup.t("cottage")>></p>
<</if>>
<<if $lastRoom>>
<p class="score"><<= setup.t("score")>> <strong><<= $score>></strong> <span>/ <<= setup.maxScore()>></span></p>
<div class="pips" @aria-label="setup.fill('pips', { done: setup.doneCount(), total: setup.goalIds().length })">
<<set _goals to setup.goalIds()>>
<<for _goal range _goals>>
<<if $done[_goal]>>
<span class="pip on"></span>
<<else>>
<span class="pip"></span>
<</if>>
<</for>>
</div>
<p class="bagline"><<= setup.carryingLine()>></p>
<</if>>
<<if $muted>>
<<button `setup.t("sound")` `passage()`>>
<<set $muted to false>>
<</button>>
<<else>>
<<button `setup.t("mute")` `passage()`>>
<<set $muted to true>>
<</button>>
<</if>>
</div>SugarCubeFour small kindnesses/% Catalog declares the world. Language holds the words. This passage only copies state. %/
<<include "Catalog">>
<<include "Language">>
<<include "Notes">>
<<set $things to clone(setup.catalog)>>
<<set $done to {}>>
<<set $score to 0>>
<<set $log to []>>
<<set $looking to "">>
<<set $visits to {}>>
<<set $lastRoom to "">>
<<set $muted to false>>
<<set $showNotes to false>>
<<set $lang to (window.location.search || "").indexOf("lang=ja") !== -1 ? "ja" : "en">>
<<if (window.location.search || "").indexOf("play=1") !== -1>>
<<run setup.noteArrived()>>
<</if>><<if $lastRoom>>
<<link `setup.t("knapsack")` "Inventory">><</link>>
<<link `setup.t("kindnesses")` "Kindnesses">><</link>>
<<link `setup.t("map")` "Map">><</link>>
<</if>>
<<link `setup.t("help")` "Help">><</link>>
<<link `setup.t("authors")` "For authors">><</link>><<widget "note">>
<<if $showNotes && _args[0]>>
<p class="lang-note"><<= _args[0]>></p>
<</if>>
<</widget>>
<<widget "choices">>
<div class="notes">
<<set _seen to setup.seenLine()>>
<<if _seen>>
<p class="seen"><<= _seen>></p>
<</if>>
<<if $looking>>
<div class="looking"><<include $looking>></div>
<</if>>
<<if $log && $log.length > 0>>
<div class="log" aria-live="polite">
<<set _firstLog to true>>
<<for _line range $log>>
<p class="beat"><<= setup.logLine(_line)>></p>
<<if _firstLog>>
<<note `setup.entryNote(_line)`>>
<<set _firstLog to false>>
<</if>>
<</for>>
</div>
<</if>>
<<if setup.allDone()>>
<p class="banner"><<= setup.t("allDone")>></p>
<</if>>
</div>
<div class="verbs" @aria-label="setup.t('actions')">
<<set _ids to Object.keys($things)>>
<<for _id range _ids>>
<<set _thing to $things[_id]>>
<<set _verbList to _thing.verbs>>
<<for _verb range _verbList>>
<<if setup.showVerb(_verb, _thing)>>
<<set _label to setup.verbLabel(_verb, _thing)>>
<<set _bnote to setup.buttonNote(_verb, _id)>>
<div class="verb-wrap">
<<if setup.usable(_verb, _thing)>>
<<capture _verb, _id, _label>>
<<button _label `passage()`>>
<<run setup.act(_verb, _id)>>
<</button>>
<</capture>>
<<else>>
<button type="button" class="ghost" disabled @title="setup.whyNot(_verb, _thing)"><<= _label>></button>
<</if>>
<<if $showNotes>><<note `_bnote`>><</if>>
</div>
<</if>>
<</for>>
<</for>>
</div>
<<exits>>
<<set _hint to setup.hint()>>
<<if _hint>>
<p class="hint"><<= _hint>></p>
<</if>>
<</widget>>
<<widget "exits">>
<<set _room to setup.rooms[passage()]>>
<<set _ways to _room && _room.exits ? _room.exits : []>>
<<if _ways.length > 0>>
<nav class="exits" @aria-label="setup.t('exits')">
<p class="exits-label"><<= setup.t("exits")>></p>
<ul>
<<for _exit range _ways>>
<<if setup.canWalk(passage(), _exit.dir)>>
<<capture _exit>>
<li><<link `setup.exitLink(_exit)` _exit.dest>><<run setup.walked(_exit.dir)>><</link>></li>
<</capture>>
<<else>>
<li><span class="shut" @title="setup.whyExit(_exit)"><<= setup.exitShut(_exit)>></span></li>
<</if>>
<</for>>
</ul>
</nav>
<</if>>
<</widget>>/%
This is the whole world, in data. The story JavaScript does not mention
any of these names. To extend the cottage, edit this passage and add a
room passage. You do not edit the verb engine.
ADD A FOOD
Copy the apple block. New id, name, where, text passage.
Keep edible: true and verbs look / take / eat / drop.
Eat stays disabled until the player is carrying it.
onEat names a kindness below. Leave it off if the food is not a goal.
ADD A DOOR
Copy front-door. kind "door", locked, open, key (an item id).
On each room it joins, add an exit with dir, dest, and via.
The exit stays plain text until the door is unlocked and open.
Then it becomes an ordinary link. No drawing code changes.
Optional: artOpen + artWhenOpen on a room swaps the picture when that
door's open flag is true. No drawing code changes.
ADD A ROOM
1. New passage tagged room. Write the prose there. End with the choices widget.
2. Add the passage name to setup.rooms with art and exits.
3. Put the name in setup.map so the Cottage map passage can draw it.
VERBS YOU MAY LIST
look, take, drop, eat, smell, unlock, open
eat needs edible: true
unlock and open are for kind "door"
take is for kind "item" (portable defaults to true)
where
a room passage name, "inventory", or "gone"
text
the name of a passage that holds the look description
%/
<<set setup.catalog to {
"brass-key": {
name: "brass key",
theName: "the brass key",
where: "Cozy Room",
kind: "item",
portable: true,
verbs: ["look", "take", "drop"],
text: "Look brass key",
takeMsg: "You take the brass key.",
onTake: "got-key"
},
"apple": {
name: "apple",
theName: "the apple",
where: "Kitchen",
kind: "item",
portable: true,
edible: true,
verbs: ["look", "take", "eat", "drop"],
text: "Look apple",
takeMsg: "You take the apple.",
eatMsg: "You eat the apple. It's delicious!",
onEat: "ate-apple"
},
"front-door": {
name: "wooden door",
theName: "the wooden door",
where: "Cozy Room",
kind: "door",
locked: true,
open: false,
key: "brass-key",
verbs: ["look", "unlock", "open"],
text: "Look front door",
unlockMsg: "You unlock the wooden door with the brass key.",
openMsg: "You open the wooden door.",
onOpen: "opened-door"
},
"table": {
name: "table",
theName: "the table",
where: "Cozy Room",
kind: "fixture",
verbs: ["look"],
text: "Look table"
},
"bed": {
name: "bed",
theName: "the bed",
where: "Bedroom",
kind: "fixture",
verbs: ["look"],
text: "Look bed"
},
"flowers": {
name: "flowers",
theName: "the flowers",
where: "Garden",
kind: "fixture",
verbs: ["look", "smell"],
text: "Look flowers",
smellMsg: "You smell the flowers. Lovely!",
onSmell: "smelled-flowers"
}
}>>
<<set setup.rooms to {
"Cozy Room": {
page: 1,
art: "art/cozy.jpg",
artOpen: "art/cozy-open.jpg",
artWhenOpen: "front-door",
exits: [
{ dir: "north", dest: "Hallway", via: "front-door" }
]
},
"Hallway": {
page: 2,
art: "art/hall.jpg",
exits: [
{ dir: "south", dest: "Cozy Room", via: "front-door" },
{ dir: "east", dest: "Kitchen" },
{ dir: "west", dest: "Bedroom" },
{ dir: "north", dest: "Garden" }
]
},
"Kitchen": {
page: 3,
art: "art/kitchen.jpg",
exits: [
{ dir: "west", dest: "Hallway" }
]
},
"Bedroom": {
page: 4,
art: "art/bedroom.jpg",
exits: [
{ dir: "east", dest: "Hallway" }
]
},
"Garden": {
page: 5,
art: "art/garden.jpg",
exits: [
{ dir: "south", dest: "Hallway" }
]
}
}>>
<<set setup.goals to {
"got-key": { points: 5, label: "Get the key" },
"ate-apple": { points: 5, label: "Eat the apple" },
"opened-door": { points: 10, label: "Open the door" },
"smelled-flowers": { points: 10, label: "Smell the flowers" }
}>>
<<set setup.hints to [
{
id: "take-key",
until: "got-key",
when: "Cozy Room",
unlessCarrying: "brass-key",
text: "The brass key is in this room. Take it."
},
{
id: "open-with-key",
until: "opened-door",
when: "Cozy Room",
carrying: "brass-key",
text: "Unlock the wooden door, then open it. North becomes a link after that."
},
{
id: "eat-carrying",
until: "ate-apple",
carrying: "apple",
text: "Eat the apple. That button stays quiet until you are carrying it."
},
{
id: "apple-where",
until: "ate-apple",
text: "The apple is in the kitchen, east of the hallway."
},
{
id: "door-where",
until: "opened-door",
text: "The wooden door in the cozy room needs the brass key."
},
{
id: "smell-here",
until: "smelled-flowers",
when: "Garden",
text: "Smell the flowers."
},
{
id: "garden-where",
until: "smelled-flowers",
text: "The garden is north of the hallway."
}
]>>
<<set setup.map to [
[null, "Garden", null],
["Bedroom", "Hallway", "Kitchen"],
[null, "Cozy Room", null]
]>>/%
Display strings for English and Japanese.
Room prose stays in the room passages. This passage is names, verbs,
hints, goals, and sidebar words. To translate a new thing, add its id
under ja.things (name, theName, and any takeMsg / eatMsg / smellMsg /
unlockMsg / openMsg).
%/
<<set setup.lex to {
en: {
ui: {
storyTitle: "Cozy Cottage PAWS",
subtitle: "Four small kindnesses",
cottage: "Cozy Cottage",
sweet: "Pretty, adorable, whimsy, and sweet.",
eyebrow: "Twine · SugarCube",
titleLede: "A walking story told with buttons. Grey buttons are resting. They wake up only when you can use them. Four small kindnesses live in these rooms.",
step: "Step inside",
stepAria: "Step inside the cottage",
continue: "Continue",
score: "Score",
page: "page",
carryingNone: "Carrying nothing.",
carrying: "Carrying {list}.",
listComma: ", ",
mute: "Mute",
sound: "Sound",
langNotes: "Language notes",
saves: "Saves",
restart: "Restart",
restartAsk: "All unsaved progress will be lost. Are you sure that you want to restart?",
knapsack: "Knapsack",
kindnesses: "Kindnesses",
map: "Cottage map",
help: "How to play",
authors: "For authors",
exits: "Exits",
actions: "Actions",
backRoom: "Back to the room",
backTitle: "Back to the title",
emptyPockets: "Your pockets are empty.",
done: "done",
points: "{n} pts",
allDone: "Every small kindness is done. The cottage keeps the quiet with you.",
mapNote: "The highlighted room is where you are standing.",
see: "You see {list}.",
toward: " to ",
locked: "{dir} — {name} is locked",
shut: "{dir} — {name} is shut",
shutBare: "{dir} is shut",
needKey: "You need {name}.",
lockedShort: "It is locked.",
openFirst: "Open {name} first.",
wayShut: "The way is shut.",
noWay: "You cannot go that way.",
happy: "It is happy where it is.",
takeFirst: "Take it first.",
unlockFirst: "Unlock it first.",
walk: "You walk {dir}.",
look: "You look at {name}.",
take: "You take {name}.",
drop: "You drop {name}.",
eat: "You eat {name}.",
smell: "You smell {name}.",
unlock: "You unlock {name}.",
open: "You open {name}.",
arrived: "You just arrived. Warm light fills the space.",
lookVerb: "Look at {name}",
takeVerb: "Take {name}",
dropVerb: "Drop {name}",
eatVerb: "Eat {name}",
smellVerb: "Smell {name}",
unlockVerb: "Unlock {name}",
openVerb: "Open {name}",
pips: "{done} of {total} kindnesses",
authorsNote: ""
},
dirs: { north: "north", south: "south", east: "east", west: "west" },
rooms: {
"Cozy Room": "Cozy Room",
"Hallway": "Hallway",
"Kitchen": "Kitchen",
"Bedroom": "Bedroom",
"Garden": "Garden"
},
goals: {},
hints: {},
things: {}
},
ja: {
ui: {
storyTitle: "くつろぎの小屋",
subtitle: "四つの小さな親切",
cottage: "くつろぎの小屋",
sweet: "きれいで、かわいくて、たのしくて、あまい。",
eyebrow: "Twine · SugarCube",
titleLede: "ボタンで歩くおはなし。灰色のボタンは休んでいて、使えるときだけ目を覚ます。この部屋には、四つの小さな親切がある。",
step: "小屋に入る",
stepAria: "小屋に入る",
continue: "つづきから",
score: "得点",
page: "ページ",
carryingNone: "なにも持っていない。",
carrying: "{list}を持っている。",
listComma: "、",
mute: "音を消す",
sound: "音を出す",
langNotes: "ことばのメモ",
saves: "セーブ",
restart: "最初から",
restartAsk: "保存していない進みは消えます。最初からにしますか?",
knapsack: "荷物",
kindnesses: "親切",
map: "小屋の地図",
help: "遊び方",
authors: "作者向け",
exits: "出口",
actions: "すること",
backRoom: "部屋にもどる",
backTitle: "表紙にもどる",
emptyPockets: "荷物は空。",
done: "済",
points: "{n}点",
allDone: "小さな親切は、すべて済んだ。小屋はあなたと一緒に静けさを守っている。",
mapNote: "色のついた部屋が、今いる場所。",
see: "{list}が見える。",
toward: "へ ",
locked: "{dir} — {name}は鍵がかかっている",
shut: "{dir} — {name}は閉まっている",
shutBare: "{dir}は通れない",
needKey: "{name}が要る。",
lockedShort: "鍵がかかっている。",
openFirst: "先に{name}を開けて。",
wayShut: "その先は閉まっている。",
noWay: "そっちへは行けない。",
happy: "そこにあるのが幸せそう。",
takeFirst: "先に取って。",
unlockFirst: "先に鍵を開けて。",
walk: "{dir}へ歩いた。",
look: "{name}を見た。",
take: "{name}を取った。",
drop: "{name}を置いた。",
eat: "{name}を食べた。",
smell: "{name}の香りをかいだ。",
unlock: "{name}の鍵を開けた。",
open: "{name}を開けた。",
arrived: "ただいま。あたたかい光が部屋を満たしている。",
lookVerb: "{name}を見る",
takeVerb: "{name}を取る",
dropVerb: "{name}を置く",
eatVerb: "{name}を食べる",
smellVerb: "{name}の香りをかぐ",
unlockVerb: "{name}の鍵を開ける",
openVerb: "{name}を開ける",
pips: "親切 {done} / {total}",
authorsNote: "このページは作者向けです。説明は英語のままです。"
},
dirs: { north: "北", south: "南", east: "東", west: "西" },
rooms: {
"Cozy Room": "くつろぎの部屋",
"Hallway": "廊下",
"Kitchen": "台所",
"Bedroom": "寝室",
"Garden": "庭"
},
goals: {
"got-key": "鍵を手に入れる",
"ate-apple": "りんごを食べる",
"opened-door": "扉を開ける",
"smelled-flowers": "花の香りをかぐ"
},
hints: {
"take-key": "真鍮の鍵はこの部屋にある。取って。",
"open-with-key": "木の扉の鍵を開けて、それから扉を開けて。そのあと北がリンクになる。",
"eat-carrying": "りんごを食べて。持っているあいだだけ、そのボタンが起きる。",
"apple-where": "りんごは台所。廊下の東。",
"door-where": "くつろぎの部屋の木の扉には、真鍮の鍵が要る。",
"smell-here": "花の香りをかいで。",
"garden-where": "庭は廊下の北。"
},
things: {
"brass-key": {
name: "真鍮の鍵",
theName: "真鍮の鍵",
takeMsg: "真鍮の鍵を取った。"
},
"apple": {
name: "りんご",
theName: "りんご",
takeMsg: "りんごを取った。",
eatMsg: "りんごを食べた。おいしい!"
},
"front-door": {
name: "木の扉",
theName: "木の扉",
unlockMsg: "真鍮の鍵で、木の扉の鍵を開けた。",
openMsg: "木の扉を開けた。"
},
"table": { name: "テーブル", theName: "テーブル" },
"bed": { name: "ベッド", theName: "ベッド" },
"flowers": {
name: "花",
theName: "花",
smellMsg: "花の香りをかいだ。いい香り。"
}
}
}
}>>/%
Short language notes, stored with the line they explain.
en notes are Japanese, and are shown under English text.
ja notes are English, and are shown under Japanese text.
Keys match the room passages, the look passages, the log lines, and the command buttons.
%/
<<set setup.notes to {
en: {
score: "+の数字は得点。うしろのことばは、いま済ませた親切の名前。",
rooms: {
"Cozy Room": {
shut: "A warm room with a wooden door は「あたたかい部屋。北に木の扉」。次の文は、陽だまりが床板の上に一本の筋、という意味。",
open: "stands open は「開いたまま」。the wooden door to the north は北の木の扉。次の文は、陽が床に長く落ちている、という意味。"
},
"Hallway": "connecting the cottage は「小屋の部屋をつなぐ」。A runner rug softens every step は、絨毯が足音をやわらかくする、という意味。",
"Kitchen": "cozy はこぢんまりして気持ちいい。ticks as it cools は、冷めていくやかんがかちかちと鳴る、という意味。",
"Bedroom": "peaceful は穏やか。turned down, as if you were expected は、布団がめくってあり、来るのを待っていたよう、という意味。",
"Garden": "with flowers は「花のある」。honey and green は、蜂蜜と緑のにおい、というたとえ。"
},
looks: {
"Look brass key": "brass は真鍮。bow は鍵の持ち手で、a tiny cottage は小さな小屋のかたち、というたとえ。",
"Look apple": "still cool from the bowl は、ボウルから出したばかりで冷たい。It looks sweet は「甘そう」。",
"Look front door": {
open: "stands open は開いたまま。onto the hallway は、廊下のほうへ続いている、という意味。",
locked: "to the north は北のほう。It is locked は鍵がかかっている。",
shut: "unlocked は鍵が開いている。still shut は、それでもまだ閉まっている、という意味。"
},
"Look table": "low は低い。happy where it is は、動かさずそこに置いておくのがよさそう、という言い方。",
"Look bed": "quilt は掛け布団。turned down, as if you were expected は、めくってあり、あなたを待っていたよう、という意味。",
"Look flowers": "a tumble of はこぼれるようにたくさん。smell like honey は蜂蜜のようなにおい。"
},
lines: {
walk: "You walk は「歩いた」。うしろの語は方向で、north は北、south は南、east は東、west は西。",
look: "You look at は「〜を見た」。at のうしろが、見たもの。",
drop: "You drop は「置いた」。うしろが、置いたもの。",
arrived: "just arrived はたった今来たところ。Warm light fills the space は、あたたかい光が部屋に満ちている、という意味。"
},
acts: {
"brass-key": {
takeMsg: "You take は「取った」。the brass key は真鍮の鍵。"
},
"apple": {
takeMsg: "You take the apple は「りんごを取った」。take は取る。",
eatMsg: "You eat は「食べた」。It's delicious は「おいしい」。"
},
"front-door": {
unlockMsg: "unlock は鍵を開ける。with the brass key は「真鍮の鍵で」。",
openMsg: "You open は「開けた」。the wooden door は木の扉。"
},
"flowers": {
smellMsg: "You smell は香りをかいだ。Lovely は「いいね」という喜び。"
}
},
buttons: {
"brass-key": {
look: "Look at は「見る」。the brass key は真鍮の鍵。過去ではなく、今できる動作。",
take: "Take は「取る」。the brass key は真鍮の鍵。ボタンは命令のかたち。",
drop: "Drop は「置く」。the brass key は真鍮の鍵。"
},
"apple": {
look: "Look at は「見る」。the apple はりんご。",
take: "Take は「取る」。the apple はりんご。",
eat: "Eat は「食べる」。the apple はりんご。持っているときだけ使える。",
drop: "Drop は「置く」。the apple はりんご。"
},
"front-door": {
look: "Look at は「見る」。the wooden door は木の扉。",
unlock: "Unlock は「鍵を開ける」。the wooden door は木の扉。",
open: "Open は「開ける」。the wooden door は木の扉。"
},
"table": {
look: "Look at は「見る」。the table はテーブル。"
},
"bed": {
look: "Look at は「見る」。the bed はベッド。"
},
"flowers": {
look: "Look at は「見る」。the flowers は花。",
smell: "Smell は「香りをかぐ」。the flowers は花。"
}
}
},
ja: {
score: "The number after + is your points. The words after it name the kindness you just did.",
rooms: {
"Cozy Room": {
shut: "あたたかい部屋 is a warm room, and 北に木の扉がある puts a wooden door to the north (に for the place, が for the door). 陽だまりが床板の上に一本の筋 is sunlight in one stripe across the floorboards.",
open: "開いている means the door is standing open. The next sentence is the same stripe of sunlight across the floorboards."
},
"Hallway": "こぢんまりした is small and snug, and つなぐ means connecting. 足音をやわらかくする means it softens your steps; を marks 足音 as the object.",
"Kitchen": "台所 is the kitchen. 冷めていく means it is cooling, and かちかちと音を立てている means the kettle is ticking.",
"Bedroom": "穏やか means peaceful. めくれていて means the quilt is turned down, and 待っていたよう means it seems to have been waiting for you.",
"Garden": "花のある means with flowers. 空気は蜂蜜と緑のにおい says the air smells of honey and green; は marks 空気 as the topic."
},
looks: {
"Look brass key": "真鍮 is brass and 鍵 is key. 持ち手 is the part you hold, and 小さな小屋のかたち means it is shaped like a tiny cottage.",
"Look apple": "出したばかり means just taken out. 冷たい is cold, and 甘そう means it looks sweet.",
"Look front door": {
open: "開いて means it is open. 廊下へ続いている means it leads on to the hallway; へ marks the direction.",
locked: "北へ続く means it leads north. 鍵がかかっている means it is locked.",
shut: "鍵は開いている means the lock is already open. まだ閉まっている means it is still shut."
},
"Look table": "低い木のテーブル is a low wooden table. ちょうどよさそう means it seems just right left where it is.",
"Look bed": "掛け布団をめくった means the quilt has been turned down. 待っていたよう means as if it had been waiting for you.",
"Look flowers": "こぼれるような means as if spilling over. 蜂蜜のにおい is the smell of honey."
},
lines: {
walk: "へ歩いた is the past of 歩く, to walk. へ marks the direction: 北 north, 南 south, 東 east, 西 west.",
look: "を見た is the past of 見る, to look. を marks the thing you looked at.",
drop: "を置いた is the past of 置く, to put down. を marks what you set down.",
arrived: "ただいま here means you have just arrived. 光が部屋を満たしている means warm light is filling the room."
},
acts: {
"brass-key": {
takeMsg: "を取った is the past of 取る, to take. 真鍮の鍵 is the brass key, and を marks it as the object."
},
"apple": {
takeMsg: "りんごを取った means you took the apple. を marks the apple, and 取った is the past of 取る.",
eatMsg: "を食べた is the past of 食べる, to eat. おいしい means delicious."
},
"front-door": {
unlockMsg: "で marks the tool, with the brass key. 鍵を開けた means you unlocked it.",
openMsg: "を開けた is the past of 開ける, to open. 木の扉 is the wooden door."
},
"flowers": {
smellMsg: "香りをかいだ means you smelled the scent. いい香り is a lovely smell."
}
},
buttons: {
"brass-key": {
look: "見る is the plain form, look at, not the past 見た. 真鍮の鍵 is the brass key, and を marks the object.",
take: "取る means take. On a button the plain form is what you can do now, not what you already did.",
drop: "置く means put down. 真鍮の鍵 is the brass key."
},
"apple": {
look: "見る means look at. りんご is the apple, and を marks the object.",
take: "取る means take. りんご is the apple.",
eat: "食べる means eat. This button stays quiet until you are carrying the apple.",
drop: "置く means put down. りんご is the apple."
},
"front-door": {
look: "見る means look at. 木の扉 is the wooden door.",
unlock: "鍵を開ける means unlock. の links 木の扉 to its 鍵.",
open: "開ける means open. 木の扉 is the wooden door, and を marks the object."
},
"table": {
look: "見る means look at. テーブル is the table."
},
"bed": {
look: "見る means look at. ベッド is the bed."
},
"flowers": {
look: "見る means look at. 花 is the flowers.",
smell: "香りをかぐ means smell the scent. の links 花 to 香り, the flowers' scent."
}
}
}
}>><<if $lang is "ja">>
<p>小さな真鍮の鍵。持ち手は、小さな小屋のかたち。</p>
<<else>>
<p>A small brass key. The bow is a tiny cottage.</p>
<</if>>
<<note `setup.lookNote("Look brass key")`>><<if $lang is "ja">>
<p>ボウルから出したばかりの、冷たい赤いりんご。甘そう。</p>
<<else>>
<p>A small red apple, still cool from the bowl. It looks sweet.</p>
<</if>>
<<note `setup.lookNote("Look apple")`>><<if $lang is "ja">>
<<if $things["front-door"].open>>
<p>木の扉が開いて、廊下へ続いている。</p>
<<elseif $things["front-door"].locked>>
<p>北へ続く木の扉。鍵がかかっている。</p>
<<else>>
<p>木の扉の鍵は開いている。まだ閉まっている。</p>
<</if>>
<<else>>
<<if $things["front-door"].open>>
<p>The wooden door stands open onto the hallway.</p>
<<elseif $things["front-door"].locked>>
<p>A wooden door to the north. It is locked.</p>
<<else>>
<p>The wooden door is unlocked, and still shut.</p>
<</if>>
<</if>>
<<note `setup.lookNote("Look front door")`>><<if $lang is "ja">>
<p>低い木のテーブル。そこにあるのが、ちょうどよさそう。</p>
<<else>>
<p>A low wooden table. It is happy where it is.</p>
<</if>>
<<note `setup.lookNote("Look table")`>><<if $lang is "ja">>
<p>掛け布団をめくったベッド。あなたを待っていたよう。</p>
<<else>>
<p>A bed with the quilt turned down, as if you were expected.</p>
<</if>>
<<note `setup.lookNote("Look bed")`>><<if $lang is "ja">>
<p>ピンクとクリーム色の、こぼれるような庭の花。蜂蜜のにおい。</p>
<<else>>
<p>A tumble of cottage flowers, pink and cream. They smell like honey.</p>
<</if>>
<<note `setup.lookNote("Look flowers")`>>