create-ifloom 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +18 -2
- package/bin.js +4 -0
- package/dist/bin.js +391 -0
- package/dist/bin.js.map +1 -0
- package/dist/examples/cafe/index.html +12 -0
- package/dist/examples/cafe/package.json +26 -0
- package/dist/examples/cafe/src/game.ts +41 -0
- package/dist/examples/cafe/src/layout.tsx +49 -0
- package/dist/examples/cafe/src/main.ts +7 -0
- package/dist/examples/cafe/src/rules.ts +38 -0
- package/dist/examples/cafe/src/story/hiring.ts +25 -0
- package/dist/examples/cafe/src/story/opening.ts +19 -0
- package/dist/examples/cafe/src/styles.css +7 -0
- package/dist/examples/cafe/src/world/actions.ts +40 -0
- package/dist/examples/cafe/src/world/menu.ts +14 -0
- package/dist/examples/cafe/src/world/staff.ts +12 -0
- package/dist/examples/cafe/src/world/stats.ts +10 -0
- package/dist/examples/cafe/src/world/triggers.ts +18 -0
- package/dist/examples/cafe/tsconfig.json +9 -0
- package/dist/examples/cafe/vite.config.ts +7 -0
- package/dist/examples/novel/index.html +12 -0
- package/dist/examples/novel/package.json +26 -0
- package/dist/examples/novel/src/game.ts +49 -0
- package/dist/examples/novel/src/layout.tsx +25 -0
- package/dist/examples/novel/src/main.ts +8 -0
- package/dist/examples/novel/src/story/ch1.ts +36 -0
- package/dist/examples/novel/src/story/ch2.ts +42 -0
- package/dist/examples/novel/src/story/ch3.ts +41 -0
- package/dist/examples/novel/src/styles.css +7 -0
- package/dist/examples/novel/src/world/stats.ts +6 -0
- package/dist/examples/novel/tsconfig.json +9 -0
- package/dist/examples/novel/vite.config.ts +7 -0
- package/dist/examples/showcase/.env +4 -0
- package/dist/examples/showcase/index.html +12 -0
- package/dist/examples/showcase/package.json +44 -0
- package/dist/examples/showcase/public/art/character/ava.svg +1 -0
- package/dist/examples/showcase/public/art/character/sam.svg +1 -0
- package/dist/examples/showcase/public/art/photo/ava.svg +1 -0
- package/dist/examples/showcase/public/art/photo/sam.svg +1 -0
- package/dist/examples/showcase/src/game.ts +168 -0
- package/dist/examples/showcase/src/layout.tsx +84 -0
- package/dist/examples/showcase/src/main.tsx +55 -0
- package/dist/examples/showcase/src/place.ts +8 -0
- package/dist/examples/showcase/src/rules.ts +51 -0
- package/dist/examples/showcase/src/story/ava.prose.ts +12 -0
- package/dist/examples/showcase/src/story/ava.ts +199 -0
- package/dist/examples/showcase/src/story/cafe.ts +157 -0
- package/dist/examples/showcase/src/story/flat.ts +90 -0
- package/dist/examples/showcase/src/story/high-street.ts +37 -0
- package/dist/examples/showcase/src/story/moving-day.ts +74 -0
- package/dist/examples/showcase/src/story/office.ts +26 -0
- package/dist/examples/showcase/src/story/park.ts +172 -0
- package/dist/examples/showcase/src/story/sam.ts +27 -0
- package/dist/examples/showcase/src/styles.css +8 -0
- package/dist/examples/showcase/src/ui.ts +44 -0
- package/dist/examples/showcase/src/unlocks/supporter.ts +40 -0
- package/dist/examples/showcase/src/world/achievements.ts +13 -0
- package/dist/examples/showcase/src/world/actions.ts +13 -0
- package/dist/examples/showcase/src/world/cast.ts +46 -0
- package/dist/examples/showcase/src/world/cheats.ts +33 -0
- package/dist/examples/showcase/src/world/phone.ts +88 -0
- package/dist/examples/showcase/src/world/settings.ts +24 -0
- package/dist/examples/showcase/src/world/stats.ts +24 -0
- package/dist/examples/showcase/src/world/strings.ts +7 -0
- package/dist/examples/showcase/src/world/things.ts +59 -0
- package/dist/examples/showcase/tsconfig.json +9 -0
- package/dist/examples/showcase/vite.config.ts +7 -0
- package/dist/templates/next/AGENTS.md +60 -0
- package/dist/templates/next/README.md +33 -0
- package/dist/templates/next/app/Game.tsx +46 -0
- package/dist/templates/next/app/layout.tsx +13 -0
- package/dist/templates/next/app/page.tsx +6 -0
- package/dist/templates/next/gitignore +6 -0
- package/dist/templates/next/next.config.ts +6 -0
- package/dist/templates/next/package.json +33 -0
- package/dist/templates/next/postcss.config.mjs +6 -0
- package/dist/templates/next/src/layout.tsx +73 -0
- package/dist/templates/next/src/styles.css +16 -0
- package/dist/templates/next/tsconfig.json +21 -0
- package/dist/templates/plugin/README.md +81 -0
- package/dist/templates/plugin/gitignore +2 -0
- package/dist/templates/plugin/package.json +66 -0
- package/dist/templates/plugin/src/index.ts +162 -0
- package/dist/templates/plugin/src/react/index.tsx +95 -0
- package/dist/templates/plugin/tests/contracts.test.ts +28 -0
- package/dist/templates/plugin/tests/plugin.test.ts +59 -0
- package/dist/templates/plugin/tests/react.test.tsx +47 -0
- package/dist/templates/plugin/tsconfig.json +21 -0
- package/dist/templates/plugin/tsdown.config.ts +14 -0
- package/dist/templates/react/package.json +30 -0
- package/dist/templates/react/src/layout.tsx +69 -0
- package/dist/templates/react/src/main.ts +11 -0
- package/dist/templates/react/src/styles.css +16 -0
- package/dist/templates/react/vite.config.ts +7 -0
- package/dist/templates/shared/AGENTS.md +58 -0
- package/dist/templates/shared/gitignore +3 -0
- package/dist/templates/shared/index.html +12 -0
- package/dist/templates/shared/src/game.ts +23 -0
- package/dist/templates/shared/src/story/opening.ts +34 -0
- package/dist/templates/shared/src/styles.css +228 -0
- package/dist/templates/shared/src/world/stats.ts +6 -0
- package/dist/templates/shared/tsconfig.json +9 -0
- package/dist/templates/shared/vite.config.ts +5 -0
- package/dist/templates/svelte/package.json +25 -0
- package/dist/templates/svelte/src/App.svelte +11 -0
- package/dist/templates/svelte/src/Beat.svelte +31 -0
- package/dist/templates/svelte/src/InputField.svelte +36 -0
- package/dist/templates/svelte/src/Layout.svelte +84 -0
- package/dist/templates/svelte/src/Line.svelte +26 -0
- package/dist/templates/svelte/src/Minigame.svelte +21 -0
- package/dist/templates/svelte/src/Panel.svelte +27 -0
- package/dist/templates/svelte/src/main.ts +5 -0
- package/dist/templates/svelte/src/runner.ts +29 -0
- package/dist/templates/svelte/vite.config.ts +5 -0
- package/dist/templates/vanilla/package.json +22 -0
- package/dist/templates/vanilla/src/layout.ts +35 -0
- package/dist/templates/vanilla/src/main.ts +253 -0
- package/dist/templates/vue/package.json +25 -0
- package/dist/templates/vue/src/App.vue +12 -0
- package/dist/templates/vue/src/Beat.vue +28 -0
- package/dist/templates/vue/src/InputField.vue +34 -0
- package/dist/templates/vue/src/Layout.vue +84 -0
- package/dist/templates/vue/src/Line.vue +41 -0
- package/dist/templates/vue/src/Minigame.vue +19 -0
- package/dist/templates/vue/src/Panel.vue +30 -0
- package/dist/templates/vue/src/main.ts +5 -0
- package/dist/templates/vue/src/runner.ts +32 -0
- package/dist/templates/vue/vite.config.ts +5 -0
- package/package.json +48 -4
- package/src/bin.ts +18 -0
- package/src/create.ts +89 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Corner Café: coffee, the counter, its storylets when you sit a while,
|
|
3
|
+
* and weekend work.
|
|
4
|
+
*/
|
|
5
|
+
import { give, type Content } from '@ifloom/engine'
|
|
6
|
+
import { statuses } from '@ifloom/plugin-statuses'
|
|
7
|
+
import { wardrobe } from '@ifloom/plugin-wardrobe'
|
|
8
|
+
import { calendar } from '@ifloom/plugin-calendar'
|
|
9
|
+
import { cast } from '@ifloom/plugin-cast'
|
|
10
|
+
import { places } from '@ifloom/plugin-places'
|
|
11
|
+
import { shop } from '@ifloom/plugin-shop'
|
|
12
|
+
import { place } from '../place.ts'
|
|
13
|
+
|
|
14
|
+
export const cafe: Content = {
|
|
15
|
+
// One coffee a day: each new day resets it.
|
|
16
|
+
resets: { hadCoffee: false },
|
|
17
|
+
scenes: [
|
|
18
|
+
// The café's storylets: scenes drawn from 'cafe' by "Sit a while", by weight, while their when holds.
|
|
19
|
+
{
|
|
20
|
+
id: 'cafe.window',
|
|
21
|
+
title: 'The window seat',
|
|
22
|
+
drawnFrom: ['cafe'],
|
|
23
|
+
weight: 3,
|
|
24
|
+
when: { not: { seen: 'cafe.window', gte: 2 } },
|
|
25
|
+
body: [{ text: 'You take the stool by the window. A bus goes by, then a man with a ladder, then the same bus the other way.' }],
|
|
26
|
+
choices: [{ id: 'leave', label: 'Finish your cup', effects: [{ scene: null }] }],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
id: 'cafe.crossword',
|
|
30
|
+
title: 'Seven down',
|
|
31
|
+
drawnFrom: ['cafe'],
|
|
32
|
+
when: { not: { seen: 'cafe.crossword' } },
|
|
33
|
+
body: [
|
|
34
|
+
{
|
|
35
|
+
text: 'The man at the next table taps his paper with a pencil.\n\n"Seven down. Somewhere to sit and wait, four letters." He looks at you over his glasses.\n\nYou try "café". He counts the squares, and writes it in.',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
choices: [
|
|
39
|
+
{
|
|
40
|
+
id: 'leave',
|
|
41
|
+
label: 'Leave him to it',
|
|
42
|
+
effects: [{ stat: 'charm', by: 1 }, { scene: null }],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: 'cafe.break',
|
|
48
|
+
title: 'Ava’s break',
|
|
49
|
+
speaker: 'ava',
|
|
50
|
+
drawnFrom: ['cafe'],
|
|
51
|
+
weight: 2,
|
|
52
|
+
when: cast.here('ava'),
|
|
53
|
+
body: [{ text: 'Ava drops into the chair opposite with a mug of her own.\n\n"Five minutes. Don’t tell anyone I sat down."' }],
|
|
54
|
+
choices: [
|
|
55
|
+
{
|
|
56
|
+
id: 'leave',
|
|
57
|
+
label: 'Keep her secret',
|
|
58
|
+
effects: [{ stat: 'friendship', by: 2, of: cast.character('ava') }, { scene: null }],
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
// When none of them can happen.
|
|
63
|
+
{
|
|
64
|
+
id: 'cafe.quiet',
|
|
65
|
+
title: 'A quiet table',
|
|
66
|
+
body: [{ text: 'Nothing much happens. The coffee machine sighs, and you let it.' }],
|
|
67
|
+
choices: [{ id: 'leave', label: 'Get up', effects: [{ scene: null }] }],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
entities: [
|
|
71
|
+
place({
|
|
72
|
+
id: 'cafe',
|
|
73
|
+
name: 'The Corner Café',
|
|
74
|
+
description: 'Café',
|
|
75
|
+
exits: ['high-street'],
|
|
76
|
+
// Open in the day; the door says when it opens again.
|
|
77
|
+
blocked: [{ when: { not: calendar.period('morning', 'afternoon') }, reason: 'Closed. Opens tomorrow morning.' }],
|
|
78
|
+
actions: [
|
|
79
|
+
{
|
|
80
|
+
id: 'coffee',
|
|
81
|
+
label: 'Buy a coffee',
|
|
82
|
+
cost: { stats: { coins: 3 } },
|
|
83
|
+
blocked: [{ when: { kv: 'hadCoffee' }, reason: 'One is enough for today.' }],
|
|
84
|
+
effects: [
|
|
85
|
+
{ stat: 'energy', by: 15 },
|
|
86
|
+
{ kv: 'hadCoffee', to: true },
|
|
87
|
+
// And a lift that lasts till tomorrow is out: 10 more energy, never written.
|
|
88
|
+
statuses.apply('caffeinated'),
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
// The counter, the shop plugin's vendor, opens in a panel: nothing about a shop is drawn by itself.
|
|
92
|
+
{ id: 'counter', label: 'Go to the counter', effects: [shop.open('counter')] },
|
|
93
|
+
// A sandwich as a plain action: a cost, a place and a thing given, with no plugin. Always 4 coins, never sold out.
|
|
94
|
+
{ id: 'buy-sandwich', label: 'Buy a sandwich', cost: { stats: { coins: 4 } }, effects: [give('item:sandwich')] },
|
|
95
|
+
// Something small happens while you sit: one of the café's storylets, drawn at random.
|
|
96
|
+
{ id: 'sit', label: 'Sit a while', effects: [{ scene: { from: 'cafe', otherwise: 'cafe.quiet' } }] },
|
|
97
|
+
],
|
|
98
|
+
// A picture of the counter while Ava is on shift, with a hotspot on her that talks to her.
|
|
99
|
+
picture: {
|
|
100
|
+
aspect: '16/10',
|
|
101
|
+
layers: [{ id: 'counter', src: 'photo/ava.svg', when: cast.here('ava') }],
|
|
102
|
+
hotspots: [{ id: 'ava', rect: [36, 22, 28, 44], label: 'Talk to Ava', command: cast.talk('ava'), layer: 'counter' }],
|
|
103
|
+
},
|
|
104
|
+
body: [
|
|
105
|
+
{ text: 'Six tables, one of them wobbly. The coffee machine sighs like it has been working since dawn, which it has.' },
|
|
106
|
+
{ text: 'Ava is behind the counter, flour to the elbows, and nods you in.', when: cast.here('ava') },
|
|
107
|
+
{ text: 'Someone points at your raincoat and grins. It is very yellow.', when: wardrobe.wearing('clothing:raincoat') },
|
|
108
|
+
{ text: 'Your knee won’t stop jiggling under the table. The coffee is working.', when: statuses.active('caffeinated') },
|
|
109
|
+
],
|
|
110
|
+
}),
|
|
111
|
+
shop.vendor({
|
|
112
|
+
id: 'counter',
|
|
113
|
+
name: 'The counter',
|
|
114
|
+
// At the café only (and not shown elsewhere), and open in the morning and afternoon.
|
|
115
|
+
blocked: [places.onlyAt(['cafe'], { string: 'shop/notHere' }, { hide: true }), shop.hours(['morning', 'afternoon'])],
|
|
116
|
+
// Ava will take an unopened sandwich back for half.
|
|
117
|
+
buysBack: 0.5,
|
|
118
|
+
// One thing on the board is half price each day.
|
|
119
|
+
discounts: { off: 0.5 },
|
|
120
|
+
goods: [
|
|
121
|
+
// Prices from each thing's sellable trait. A sandwich is always there.
|
|
122
|
+
{ entity: 'item:sandwich' },
|
|
123
|
+
// Two a day, baked each morning: the counter holds them.
|
|
124
|
+
{ entity: 'item:flapjack', stock: 2, restock: 'day' },
|
|
125
|
+
{ entity: 'item:paper' },
|
|
126
|
+
],
|
|
127
|
+
}),
|
|
128
|
+
],
|
|
129
|
+
data: {
|
|
130
|
+
jobs: {
|
|
131
|
+
jobs: [
|
|
132
|
+
{
|
|
133
|
+
id: 'weekend',
|
|
134
|
+
name: 'Weekend help',
|
|
135
|
+
description: 'Saturday mornings behind the counter at the Corner Café.',
|
|
136
|
+
blocked: [{ when: { not: { stat: 'friendship', of: cast.character('ava'), gte: 10 } }, reason: 'Ava doesn’t know you well enough yet.' }],
|
|
137
|
+
// Saturdays (day 5 of the calendar's week), starting in the morning; the shift takes it.
|
|
138
|
+
days: [5],
|
|
139
|
+
hours: ['morning'],
|
|
140
|
+
// Worked at the café.
|
|
141
|
+
shift: { cost: { energy: 25 }, passes: 1, blocked: [places.onlyAt(['cafe'], { string: 'jobs/notHere' })] },
|
|
142
|
+
ranks: [
|
|
143
|
+
{ id: 'help', name: 'Weekend help', pay: { coins: 12 } },
|
|
144
|
+
{ id: 'barista', name: 'Barista', pay: { coins: 16 }, requires: { shifts: 3 } },
|
|
145
|
+
],
|
|
146
|
+
// Miss two Saturdays and Ava finds someone else.
|
|
147
|
+
fire: { missed: 2 },
|
|
148
|
+
},
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
statuses: {
|
|
152
|
+
statuses: [
|
|
153
|
+
{ id: 'caffeinated', name: 'Caffeinated', description: 'A coffee’s worth of get-up-and-go.', turns: 2, modifiers: [{ stat: 'energy', add: 10 }] },
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/** Your flat: home, bed, the wardrobe, Ava's text on the sill, her call, and the rent every Sunday. */
|
|
2
|
+
import { text, type Condition, type Content } from '@ifloom/engine'
|
|
3
|
+
import { calendar } from '@ifloom/plugin-calendar'
|
|
4
|
+
import { messages } from '@ifloom/plugin-messages'
|
|
5
|
+
import { places } from '@ifloom/plugin-places'
|
|
6
|
+
import { devices } from '@ifloom/plugin-devices'
|
|
7
|
+
import { wardrobe } from '@ifloom/plugin-wardrobe'
|
|
8
|
+
import { place } from '../place.ts'
|
|
9
|
+
|
|
10
|
+
/** Ava's text has come and hasn't been read. */
|
|
11
|
+
const textWaiting: Condition = {
|
|
12
|
+
all: [{ 'messages/arrived': { message: 'ava.text' } }, { not: { 'messages/read': { message: 'ava.text' } } }],
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const flat: Content = {
|
|
16
|
+
// Ava rings once, an evening at home after you've answered her text. Ten seconds to pick up, or it's a missed call.
|
|
17
|
+
timers: [
|
|
18
|
+
{
|
|
19
|
+
id: 'flat.ring',
|
|
20
|
+
label: 'Ringing',
|
|
21
|
+
ms: 10_000,
|
|
22
|
+
effects: [{ scene: null }, { kv: 'missedAva', to: true }, { notify: 'Missed call: Ava', id: 'missed-call', tag: 'phone' }],
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
scenes: [
|
|
26
|
+
{
|
|
27
|
+
id: 'flat.ring',
|
|
28
|
+
title: 'The phone',
|
|
29
|
+
speaker: 'ava',
|
|
30
|
+
// The React UI draws the timer's countdown under this block, from its `ui.timer` hint.
|
|
31
|
+
body: [{ text: 'Your phone is ringing on the sill. Ava. Answer before it stops.', ui: { timer: 'flat.ring' } }],
|
|
32
|
+
choices: [
|
|
33
|
+
// Answering stops the timer, so the missed call never comes.
|
|
34
|
+
{
|
|
35
|
+
id: 'answer',
|
|
36
|
+
label: 'Answer it',
|
|
37
|
+
effects: [{ timer: 'flat.ring', to: null }, { scene: 'ava.call' }],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'leave',
|
|
41
|
+
label: 'Let it ring',
|
|
42
|
+
effects: [{ timer: 'flat.ring', to: null }, { scene: null }],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
triggers: [
|
|
48
|
+
// The phone rings at home, an evening from the day after you answered Ava's text: the scene opens with its timer running.
|
|
49
|
+
{
|
|
50
|
+
id: 'flat.ring',
|
|
51
|
+
when: { all: [messages.replied('ava.text'), places.at('flat'), calendar.day({ gte: 2 }), calendar.period('evening')] },
|
|
52
|
+
effects: [{ scene: 'flat.ring' }, { timer: 'flat.ring' }],
|
|
53
|
+
},
|
|
54
|
+
// Rent, every Sunday from the first week on: the town's one bill, so money has somewhere to go.
|
|
55
|
+
{
|
|
56
|
+
id: 'rent',
|
|
57
|
+
once: { per: 'turn' },
|
|
58
|
+
when: { all: [calendar.weekday(6), calendar.day({ gte: 6 })] },
|
|
59
|
+
effects: [
|
|
60
|
+
{ stat: 'coins', by: -30 },
|
|
61
|
+
{ notify: 'Rent paid: 30 coins', id: 'rent', tag: 'money' },
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
entities: [
|
|
66
|
+
place({
|
|
67
|
+
id: 'flat',
|
|
68
|
+
name: 'Your flat',
|
|
69
|
+
description: 'Home',
|
|
70
|
+
exits: ['high-street'],
|
|
71
|
+
// A place to change: the wardrobe's closet trait gives the flat an "Open the wardrobe" button that opens its panel.
|
|
72
|
+
// The layout also shows what you're wearing, at home only.
|
|
73
|
+
traits: { ...wardrobe.closet({ label: 'Open the wardrobe' }) },
|
|
74
|
+
body: [
|
|
75
|
+
// `[[ui:modal|…]]` is the React UI's: "the radiator knocks" opens Sam's welcome note, the prose `notice.welcome`, in a dialog.
|
|
76
|
+
text(
|
|
77
|
+
"Boxes, mostly. The window looks over the high street, and [[ui:modal|the radiator knocks|notice.welcome|Sam's note]] when it feels like it. {{catName}} has claimed the warm spot on the sill.",
|
|
78
|
+
),
|
|
79
|
+
// Once Ava's text has come and until it's read, a line with a link that opens the phone: `[[act:read-text|…]]`
|
|
80
|
+
// draws the flat's "Read your messages" action here, in the line.
|
|
81
|
+
text('Your phone buzzes on the sill: a message. [[act:read-text|Check it]].', { when: textWaiting }),
|
|
82
|
+
],
|
|
83
|
+
actions: [
|
|
84
|
+
{ id: 'bed', label: 'Go to bed', command: calendar.sleep() },
|
|
85
|
+
// Drawn inline by `[[act:read-text|…]]` in the line above, so it isn't a button as well.
|
|
86
|
+
{ id: 'read-text', label: 'Read your messages', when: textWaiting, command: devices.open('texts') },
|
|
87
|
+
],
|
|
88
|
+
}),
|
|
89
|
+
],
|
|
90
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** The high street: the way to everywhere, the weather, and the market's scarves. */
|
|
2
|
+
import { give, holding, type Content } from '@ifloom/engine'
|
|
3
|
+
import { place } from '../place.ts'
|
|
4
|
+
|
|
5
|
+
export const highStreet: Content = {
|
|
6
|
+
variants: {
|
|
7
|
+
'street.weather': ['street.weather.drizzle', 'street.weather.sun', 'street.weather.wind'],
|
|
8
|
+
},
|
|
9
|
+
entities: [
|
|
10
|
+
place({
|
|
11
|
+
id: 'high-street',
|
|
12
|
+
name: 'High Street',
|
|
13
|
+
tags: ['outdoors'],
|
|
14
|
+
exits: ['flat', 'cafe', 'park', 'office'],
|
|
15
|
+
// The street, then a line about the weather, drawn afresh each day.
|
|
16
|
+
body: [
|
|
17
|
+
{ text: 'A bakery, a launderette, a bus stop with a bench nobody sits on. The café on the corner has its door propped open.' },
|
|
18
|
+
{ variants: 'street.weather' },
|
|
19
|
+
{ text: 'Hint: the café is open in the day, and whoever runs it likes a chat.', when: { setting: 'hints' } },
|
|
20
|
+
],
|
|
21
|
+
actions: [
|
|
22
|
+
{
|
|
23
|
+
id: 'scarf',
|
|
24
|
+
label: 'Buy a scarf at the market',
|
|
25
|
+
cost: { stats: { coins: 8 } },
|
|
26
|
+
blocked: [{ when: holding('clothing:scarf'), reason: 'You have one.' }],
|
|
27
|
+
effects: [give('clothing:scarf')],
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
}),
|
|
31
|
+
],
|
|
32
|
+
prose: {
|
|
33
|
+
'street.weather.drizzle': 'A fine drizzle that never quite becomes rain.',
|
|
34
|
+
'street.weather.sun': 'Sun on the shopfronts; someone has put a chair out on the pavement.',
|
|
35
|
+
'street.weather.wind': 'Wind down the street, rattling the bakery sign.',
|
|
36
|
+
},
|
|
37
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/** Moving day: the arrival, the cat's name, the note under the door and settling in. */
|
|
2
|
+
import { give, text, type Content } from '@ifloom/engine'
|
|
3
|
+
import { places } from '@ifloom/plugin-places'
|
|
4
|
+
|
|
5
|
+
/** Sam's note under the door: the notice's words, and the note's, kept in the phone's Notes app. */
|
|
6
|
+
const WELCOME = 'Welcome to the building! Bins go out Thursday. The radiator knocks; ignore it. — Sam, flat 2'
|
|
7
|
+
|
|
8
|
+
export const movingDay: Content = {
|
|
9
|
+
// The game opens on moving day, and only moves through its scene until you unpack.
|
|
10
|
+
introScene: 'intro',
|
|
11
|
+
kv: { phase: 'arrival' },
|
|
12
|
+
locks: [{ id: 'moving-day', when: { kv: 'phase', is: ['arrival'] }, deny: ['*'], except: ['choose', 'input'], reason: 'Unpack first.' }],
|
|
13
|
+
scenes: [
|
|
14
|
+
{
|
|
15
|
+
id: 'intro',
|
|
16
|
+
title: 'Moving day',
|
|
17
|
+
// The React UI's hints: it fades in from the title page, and its second paragraph comes after a pause.
|
|
18
|
+
ui: { transition: { in: 'fade', out: 'fade', ms: 500 } },
|
|
19
|
+
body: [
|
|
20
|
+
// `*…*` is italics and `**…**` bold, inside the line, and the tooltip on "launderette" is the prose `intro.launderette`.
|
|
21
|
+
text(
|
|
22
|
+
'The van pulls away and leaves you on the pavement with three boxes, a key and *a cat in a basket*. The flat is above a [[tip:intro.launderette|launderette]]; it smells of **warm cotton**.',
|
|
23
|
+
// An id names the block for a translation's words table, `scene.intro.text.arrival`, however its words change.
|
|
24
|
+
{ id: 'arrival' },
|
|
25
|
+
),
|
|
26
|
+
// Revealed after the line above, by its `ui.reveal` hint.
|
|
27
|
+
text('Tomorrow you start learning the town. Tonight you unpack, and the cat needs a name.', { id: 'tonight', ui: { reveal: { delay: 1200 } } }),
|
|
28
|
+
],
|
|
29
|
+
choices: [
|
|
30
|
+
{
|
|
31
|
+
id: 'unpack',
|
|
32
|
+
label: 'Unpack',
|
|
33
|
+
// The flat slides up into view once the boxes are in.
|
|
34
|
+
ui: { transition: { in: 'slide-up', ms: 400 } },
|
|
35
|
+
effects: [{ scene: null }, { kv: 'phase', to: 'open' }],
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
// Sam's note: the notice says it, and you keep it in the phone's Notes app.
|
|
41
|
+
entities: [{ id: 'welcome', of: 'note', name: 'Welcome note', description: WELCOME }],
|
|
42
|
+
// On moving day the cat needs a name; the prose says it from then on.
|
|
43
|
+
inputs: [{ id: 'catName', label: 'Name your cat', type: 'text', maxLength: 16, when: { kv: 'phase', is: ['arrival'] } }],
|
|
44
|
+
triggers: [
|
|
45
|
+
// A note under the door the first time the player steps out.
|
|
46
|
+
{
|
|
47
|
+
id: 'welcome',
|
|
48
|
+
when: places.at('high-street'),
|
|
49
|
+
effects: [{ notify: 'A note under your door', text: WELCOME, tag: 'post' }, give('note:welcome')],
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
data: {
|
|
53
|
+
quests: {
|
|
54
|
+
quests: [
|
|
55
|
+
{
|
|
56
|
+
id: 'settle',
|
|
57
|
+
name: 'Settle in',
|
|
58
|
+
description: 'New town, new flat. Find your feet.',
|
|
59
|
+
starts: { kv: 'phase', is: ['open'] },
|
|
60
|
+
stages: [
|
|
61
|
+
{ id: 'out', hint: 'Step out onto the high street.', done: places.at('high-street') },
|
|
62
|
+
{ id: 'ava', hint: 'Somebody runs the café. Say hello.', done: { seen: 'ava.hi' } },
|
|
63
|
+
{ id: 'post', hint: 'Take a photo with someone and post it.', done: { 'feed/posted': { gte: 1 } } },
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
prose: {
|
|
70
|
+
// The tooltip on "launderette" in the scene, and Sam's note the flat's radiator opens: lines read by key.
|
|
71
|
+
'intro.launderette': 'Sam from flat 2 runs it. Service washes, Monday to Saturday.',
|
|
72
|
+
'notice.welcome': WELCOME,
|
|
73
|
+
},
|
|
74
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** The office: shifts on weekdays, in the day. */
|
|
2
|
+
import { text, type Content } from '@ifloom/engine'
|
|
3
|
+
import { calendar } from '@ifloom/plugin-calendar'
|
|
4
|
+
import { places } from '@ifloom/plugin-places'
|
|
5
|
+
import { place } from '../place.ts'
|
|
6
|
+
|
|
7
|
+
export const office: Content = {
|
|
8
|
+
// No phone at work.
|
|
9
|
+
locks: [{ id: 'no-phone', when: places.at('office'), deny: ['devices/*'], reason: 'Not at work.' }],
|
|
10
|
+
entities: [
|
|
11
|
+
place({
|
|
12
|
+
id: 'office',
|
|
13
|
+
name: 'The Office',
|
|
14
|
+
description: 'Work',
|
|
15
|
+
exits: ['high-street'],
|
|
16
|
+
body: [text('Strip lights, a kettle, a stack of forms that never gets shorter.')],
|
|
17
|
+
// Weekdays only, in the day.
|
|
18
|
+
blocked: [
|
|
19
|
+
{ when: calendar.weekday(5, 6), reason: 'Shut at weekends.' },
|
|
20
|
+
{ when: { all: [calendar.weekday(4), { not: calendar.period('morning', 'afternoon') }] }, reason: 'Closed. Back on Monday.' },
|
|
21
|
+
{ when: { not: calendar.period('morning', 'afternoon') }, reason: 'Closed. Opens tomorrow morning.' },
|
|
22
|
+
],
|
|
23
|
+
actions: [{ id: 'work', label: 'Do a shift', cost: { stats: { energy: 30 } }, effects: [calendar.pass(2), { stat: 'coins', by: 20 }] }],
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/** Riverside Park: jogging, quick feet with the kids, skimming stones, the ducks, the day's visitors and dog walking. */
|
|
2
|
+
import type { Block, Condition, MinigameDef, MinigameStateDef, Content } from '@ifloom/engine'
|
|
3
|
+
import { generators } from '@ifloom/plugin-generators'
|
|
4
|
+
import { calendar } from '@ifloom/plugin-calendar'
|
|
5
|
+
import { places } from '@ifloom/plugin-places'
|
|
6
|
+
import { place } from '../place.ts'
|
|
7
|
+
|
|
8
|
+
/** The four arrows of quick feet, in the order the minigame's `arrow` variable numbers them from 1. */
|
|
9
|
+
const ARROWS = ['up', 'down', 'left', 'right'] as const
|
|
10
|
+
|
|
11
|
+
/** What the girl with the whistle does for each arrow. */
|
|
12
|
+
const POINTS: Record<(typeof ARROWS)[number], string> = {
|
|
13
|
+
up: 'The girl with the whistle points at the sky. Up!',
|
|
14
|
+
down: 'She points at her shoes. Down!',
|
|
15
|
+
left: 'She points at the river. Left!',
|
|
16
|
+
right: 'She points at the swings. Right!',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** One arrow on screen: 1.5 seconds to press it. The right one scores; a wrong one or the time running out doesn't. */
|
|
20
|
+
const showArrow = (arrow: (typeof ARROWS)[number]): MinigameStateDef => ({
|
|
21
|
+
label: POINTS[arrow],
|
|
22
|
+
after: { ms: 1500, go: 'round' },
|
|
23
|
+
on: ARROWS.map((input) => ({ input, go: 'round', ...(input === arrow ? { effects: [{ kv: 'score', of: 'minigame', by: 1 }] } : {}) })),
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Quick feet, at the park: five rounds, each a random arrow to press in time.
|
|
28
|
+
* Three or more right wins a few coins from the kids' pot.
|
|
29
|
+
*/
|
|
30
|
+
const quickFeet: MinigameDef = {
|
|
31
|
+
id: 'arrows',
|
|
32
|
+
title: 'Quick feet',
|
|
33
|
+
start: 'round',
|
|
34
|
+
kv: { round: 0, arrow: 0, score: 0 },
|
|
35
|
+
keys: { up: ['ArrowUp', 'w'], down: ['ArrowDown', 's'], left: ['ArrowLeft', 'a'], right: ['ArrowRight', 'd'] },
|
|
36
|
+
states: {
|
|
37
|
+
// A new round draws an arrow, or after the fifth, the score is counted.
|
|
38
|
+
round: {
|
|
39
|
+
always: [
|
|
40
|
+
{ when: { kv: 'round', of: 'minigame', gte: 5 }, go: 'tally' },
|
|
41
|
+
{
|
|
42
|
+
go: 'pick',
|
|
43
|
+
effects: [
|
|
44
|
+
{ kv: 'round', of: 'minigame', by: 1 },
|
|
45
|
+
{ kv: 'arrow', of: 'minigame', random: [1, 4] },
|
|
46
|
+
],
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
pick: { always: ARROWS.map((arrow, index) => ({ when: { kv: 'arrow', of: 'minigame', gte: index + 1, lte: index + 1 }, go: arrow })) },
|
|
51
|
+
...Object.fromEntries(ARROWS.map((arrow) => [arrow, showArrow(arrow)])),
|
|
52
|
+
tally: { always: [{ when: { kv: 'score', of: 'minigame', gte: 3 }, go: 'won' }, { go: 'lost' }] },
|
|
53
|
+
won: {
|
|
54
|
+
final: {
|
|
55
|
+
effects: [{ stat: 'coins', by: 5 }, { scene: 'park.arrows-won' }],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
lost: { final: { effects: [{ scene: 'park.arrows-lost' }] } },
|
|
59
|
+
},
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* How a skimmed stone went, under the dice: drawn only the turn you skim
|
|
64
|
+
* (`skimmed` resets each day), by the latest roll under `skim`. The React UI
|
|
65
|
+
* draws the dice before the line that shows (`ui.dice`), and holds the line
|
|
66
|
+
* back until they settle.
|
|
67
|
+
*/
|
|
68
|
+
const skimmed = (when: Condition, text: string): Block => ({ text, when: { all: [{ kv: 'skimmed' }, when] }, ui: { dice: 'skim' } })
|
|
69
|
+
|
|
70
|
+
export const park: Content = {
|
|
71
|
+
// One skimmed stone a day: each new day resets it.
|
|
72
|
+
resets: { skimmed: false },
|
|
73
|
+
scenes: [
|
|
74
|
+
// How quick feet ends.
|
|
75
|
+
{
|
|
76
|
+
id: 'park.arrows-won',
|
|
77
|
+
title: 'Quick feet',
|
|
78
|
+
body: [{ text: 'The kids count it up on their fingers and agree, grudgingly, that you win. Five coins change hands from a jam jar.' }],
|
|
79
|
+
choices: [{ id: 'leave', label: 'Bow', effects: [{ scene: null }] }],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'park.arrows-lost',
|
|
83
|
+
title: 'Quick feet',
|
|
84
|
+
body: [{ text: '"Too slow!" They are already picking a new grown-up to beat.' }],
|
|
85
|
+
choices: [{ id: 'leave', label: 'Retire with dignity', effects: [{ scene: null }] }],
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
minigames: [quickFeet],
|
|
89
|
+
// People out in the park, made fresh each day by the generators plugin.
|
|
90
|
+
kinds: [{ id: 'visitor', label: 'Visitor', plural: 'Visitors' }],
|
|
91
|
+
triggers: [
|
|
92
|
+
// The first time each day the player is in the park: yesterday's visitors go home and two new ones come.
|
|
93
|
+
{
|
|
94
|
+
id: 'visitors',
|
|
95
|
+
once: { per: 'turn' },
|
|
96
|
+
when: places.at('park'),
|
|
97
|
+
effects: [{ each: 'visitor', effects: [{ remove: '$' }] }, generators.generate('visitor', 2)],
|
|
98
|
+
},
|
|
99
|
+
// And the ducks come to see what you brought: a roll no line of prose hints, so the React UI shows it over the scene.
|
|
100
|
+
{ id: 'ducks', once: { per: 'turn' }, when: places.at('park'), effects: [{ roll: 'ducks', dice: '1d6+2' }] },
|
|
101
|
+
],
|
|
102
|
+
entities: [
|
|
103
|
+
place({
|
|
104
|
+
id: 'park',
|
|
105
|
+
name: 'Riverside Park',
|
|
106
|
+
tags: ['outdoors'],
|
|
107
|
+
exits: ['high-street'],
|
|
108
|
+
// The river, the ducks, a line while the day's visitors are about, then the stones, with how today's skim went.
|
|
109
|
+
body: [
|
|
110
|
+
// Read by key from the prose, so a mod can rewrite the river: the example mod's fog does.
|
|
111
|
+
{ prose: 'place.park' },
|
|
112
|
+
// `{{ducks}}` is the total the trigger's roll put in the kv store.
|
|
113
|
+
{ text: '{{ducks}} of them paddle over at once, in case you brought bread.', when: { roll: 'ducks' } },
|
|
114
|
+
{ text: 'A few people are out along the path today, walking off their lunch.', when: { count: 'visitor', gte: 1 } },
|
|
115
|
+
{ text: 'Flat stones lie along the water’s edge. [[act:skim|Try to skim a stone]].' },
|
|
116
|
+
skimmed({ roll: 'skim', critical: 'max' }, 'Skip after skip, clean to the far bank. An old man on the bench gives you a slow round of applause.'),
|
|
117
|
+
skimmed(
|
|
118
|
+
{ roll: 'skim', passed: true, critical: false },
|
|
119
|
+
'The stone skips once, twice, again, and sinks most of the way across. The ducks look impressed despite themselves.',
|
|
120
|
+
),
|
|
121
|
+
skimmed({ roll: 'skim', passed: false }, 'Plop. It goes straight in, and the ducks look delighted.'),
|
|
122
|
+
],
|
|
123
|
+
actions: [
|
|
124
|
+
{ id: 'jog', label: 'Go for a jog', cost: { stats: { energy: 15 } }, effects: [calendar.pass(1), { stat: 'charm', by: 1 }] },
|
|
125
|
+
{ id: 'arrows', label: 'Play quick feet with the kids', effects: [{ minigame: 'arrows' }] },
|
|
126
|
+
// Two dice against 8: the total goes in the kv store as `skim`, and the roll is kept for `{ roll: 'skim' }`.
|
|
127
|
+
// Drawn inline by `[[act:skim|…]]` in the stones line, so it isn't a button as well.
|
|
128
|
+
{
|
|
129
|
+
id: 'skim',
|
|
130
|
+
label: 'Skim a stone',
|
|
131
|
+
effects: [
|
|
132
|
+
{ kv: 'skimmed', to: true },
|
|
133
|
+
{ roll: 'skim', dice: '2d6', against: 8 },
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
}),
|
|
138
|
+
],
|
|
139
|
+
data: {
|
|
140
|
+
jobs: {
|
|
141
|
+
jobs: [
|
|
142
|
+
{
|
|
143
|
+
id: 'dogs',
|
|
144
|
+
name: 'Dog walker',
|
|
145
|
+
description: 'An hour round the park with somebody’s spaniel, on weekday evenings. In the Gazette’s ads.',
|
|
146
|
+
days: [0, 1, 2, 3, 4],
|
|
147
|
+
hours: ['evening'],
|
|
148
|
+
shift: { cost: { energy: 15 }, passes: 1, blocked: [places.onlyAt(['park'], { string: 'jobs/notHere' })] },
|
|
149
|
+
ranks: [{ id: 'walker', name: 'Dog walker', pay: { coins: 6 } }],
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
generators: {
|
|
154
|
+
pools: [
|
|
155
|
+
{ id: 'first-names', values: ['Ruth', 'Omar', 'Lena', 'Theo', 'Priya', 'Jonah', 'Maud', 'Kit'] },
|
|
156
|
+
// Most come alone; plenty bring a dog; now and then, a pushchair.
|
|
157
|
+
{
|
|
158
|
+
id: 'company',
|
|
159
|
+
values: [
|
|
160
|
+
{ value: 'alone', weight: 5 },
|
|
161
|
+
{ value: 'a dog', weight: 4 },
|
|
162
|
+
{ value: 'a pushchair', weight: 1 },
|
|
163
|
+
],
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
templates: [{ id: 'visitor', of: 'visitor', name: { pool: 'first-names' }, kv: { with: { pool: 'company' }, laps: { between: [1, 3] } } }],
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
prose: {
|
|
170
|
+
'place.park': 'The river is slow and brown and full of ducks with opinions.',
|
|
171
|
+
},
|
|
172
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** Sam from flat 2, out with a dog that isn't theirs. */
|
|
2
|
+
import type { Content } from '@ifloom/engine'
|
|
3
|
+
import { calendar } from '@ifloom/plugin-calendar'
|
|
4
|
+
import { cast } from '@ifloom/plugin-cast'
|
|
5
|
+
|
|
6
|
+
export const sam: Content = {
|
|
7
|
+
scenes: [
|
|
8
|
+
{
|
|
9
|
+
id: 'sam.hi',
|
|
10
|
+
title: 'Sam',
|
|
11
|
+
speaker: 'sam',
|
|
12
|
+
body: [{ text: 'Sam is walking a dog that is clearly not theirs. "Dog-sitting," they say. "He’s in charge."' }],
|
|
13
|
+
choices: [
|
|
14
|
+
{
|
|
15
|
+
id: 'bye',
|
|
16
|
+
label: 'Pat the dog and go',
|
|
17
|
+
effects: [{ stat: 'friendship', by: 5, of: cast.character('sam') }, { scene: null }],
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
data: {
|
|
23
|
+
feed: {
|
|
24
|
+
posts: [{ id: 'sam.river', feed: 'social', from: 'sam', when: calendar.day({ gte: 2 }), body: [{ text: 'The ducks have unionised.' }], likes: 3 }],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The plugin UIs Small Town is drawn with, each from its plugin's `/react`.
|
|
3
|
+
* They bring the shop's and the jobs' panels, the achievements page, the code
|
|
4
|
+
* box, a channel and a feed in the phone's apps, and the plugins' words. The
|
|
5
|
+
* layout in `layout.tsx` places the plugins' parts by hand; with the default
|
|
6
|
+
* layout, they'd go where each UI says, in this order.
|
|
7
|
+
*/
|
|
8
|
+
import type { PluginUi } from '@ifloom/react/kit'
|
|
9
|
+
import { achievementsUi } from '@ifloom/plugin-achievements/react'
|
|
10
|
+
import { calendarUi } from '@ifloom/plugin-calendar/react'
|
|
11
|
+
import { castUi } from '@ifloom/plugin-cast/react'
|
|
12
|
+
import { debugUi } from '@ifloom/plugin-debug/react'
|
|
13
|
+
import { devicesUi } from '@ifloom/plugin-devices/react'
|
|
14
|
+
import { feedUi } from '@ifloom/plugin-feed/react'
|
|
15
|
+
import { inventoryUi } from '@ifloom/plugin-inventory/react'
|
|
16
|
+
import { jobsUi } from '@ifloom/plugin-jobs/react'
|
|
17
|
+
import { messagesUi } from '@ifloom/plugin-messages/react'
|
|
18
|
+
import { placesUi } from '@ifloom/plugin-places/react'
|
|
19
|
+
import { questsUi } from '@ifloom/plugin-quests/react'
|
|
20
|
+
import { shopUi } from '@ifloom/plugin-shop/react'
|
|
21
|
+
import { statusesUi } from '@ifloom/plugin-statuses/react'
|
|
22
|
+
import { unlocksUiWith, type UnlocksUiOptions } from '@ifloom/plugin-unlocks/react'
|
|
23
|
+
import { wardrobeUi } from '@ifloom/plugin-wardrobe/react'
|
|
24
|
+
|
|
25
|
+
/** Every plugin UI the town uses. `unlocks` is what the code box shows and does: what couldn't be opened, and how to restart. */
|
|
26
|
+
export function townUi(unlocks: UnlocksUiOptions = {}): PluginUi[] {
|
|
27
|
+
return [
|
|
28
|
+
calendarUi,
|
|
29
|
+
placesUi,
|
|
30
|
+
castUi,
|
|
31
|
+
statusesUi,
|
|
32
|
+
questsUi,
|
|
33
|
+
inventoryUi,
|
|
34
|
+
wardrobeUi,
|
|
35
|
+
achievementsUi,
|
|
36
|
+
devicesUi,
|
|
37
|
+
messagesUi,
|
|
38
|
+
feedUi,
|
|
39
|
+
shopUi,
|
|
40
|
+
jobsUi,
|
|
41
|
+
unlocksUiWith(unlocks),
|
|
42
|
+
debugUi,
|
|
43
|
+
]
|
|
44
|
+
}
|