@fungi.computer/sprite-zdog 0.0.0-stage → 0.0.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.
Files changed (50) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +125 -2
  3. package/dist/agent-proof/moth.d.ts +50 -0
  4. package/dist/agent-proof/moth.js +52 -0
  5. package/dist/author.d.ts +217 -0
  6. package/dist/author.js +372 -0
  7. package/dist/avatar.d.ts +69 -0
  8. package/dist/avatar.js +40 -0
  9. package/dist/builtins/base-face.d.ts +290 -0
  10. package/dist/builtins/base-face.js +615 -0
  11. package/dist/builtins/base.d.ts +331 -0
  12. package/dist/builtins/base.js +579 -0
  13. package/dist/builtins/burger-input.d.ts +310 -0
  14. package/dist/builtins/burger-input.js +517 -0
  15. package/dist/builtins/burger.d.ts +305 -0
  16. package/dist/builtins/burger.js +4 -0
  17. package/dist/builtins/cat-input.d.ts +316 -0
  18. package/dist/builtins/cat-input.js +255 -0
  19. package/dist/builtins/cat.d.ts +311 -0
  20. package/dist/builtins/cat.js +4 -0
  21. package/dist/builtins/index.d.ts +4 -0
  22. package/dist/builtins/index.js +4 -0
  23. package/dist/builtins/mushroom-input.d.ts +314 -0
  24. package/dist/builtins/mushroom-input.js +94 -0
  25. package/dist/builtins/mushroom.d.ts +310 -0
  26. package/dist/builtins/mushroom.js +4 -0
  27. package/dist/burger.d.ts +9 -0
  28. package/dist/burger.js +15 -0
  29. package/dist/cat.d.ts +9 -0
  30. package/dist/cat.js +15 -0
  31. package/dist/catalog.d.ts +3 -0
  32. package/dist/catalog.js +63 -0
  33. package/dist/document.d.ts +444 -0
  34. package/dist/document.js +204 -0
  35. package/dist/index.d.ts +10 -0
  36. package/dist/index.js +10 -0
  37. package/dist/internal.d.ts +41 -0
  38. package/dist/internal.js +21 -0
  39. package/dist/mushroom.character.json +1930 -0
  40. package/dist/mushroom.d.ts +4 -0
  41. package/dist/mushroom.js +9 -0
  42. package/dist/palette.d.ts +3 -0
  43. package/dist/palette.js +5 -0
  44. package/dist/portable.d.ts +4 -0
  45. package/dist/portable.js +61 -0
  46. package/dist/renderer.d.ts +4 -0
  47. package/dist/renderer.js +106 -0
  48. package/dist/zdog-runtime.d.ts +21 -0
  49. package/dist/zdog-runtime.js +622 -0
  50. package/package.json +112 -3
@@ -0,0 +1,331 @@
1
+ declare const base: Readonly<{
2
+ readonly apiVersion: 1;
3
+ readonly name: "ball";
4
+ readonly palette: {
5
+ readonly body: "#accce4";
6
+ readonly eye: "#28282e";
7
+ readonly mouth: "#28282e";
8
+ readonly blush: "#feaae4";
9
+ readonly dead: "#6c5671";
10
+ readonly deadTongue: "#d9c8bf";
11
+ readonly tongue: "#f98284";
12
+ readonly sweat: "#accce4";
13
+ readonly white: "#ffffff";
14
+ };
15
+ readonly build: ({ scene, color }: import("../author.js").AuthorContext) => {
16
+ root: import("../author.js").SceneNode;
17
+ variants: {
18
+ eyes: {
19
+ normal: import("../author.js").SceneNode;
20
+ happy: import("../author.js").SceneNode;
21
+ sad: import("../author.js").SceneNode;
22
+ angry: import("../author.js").SceneNode;
23
+ surprised: import("../author.js").SceneNode;
24
+ dead: import("../author.js").SceneNode;
25
+ confused: import("../author.js").SceneNode;
26
+ sleepy: import("../author.js").SceneNode;
27
+ nervous: import("../author.js").SceneNode;
28
+ shy: import("../author.js").SceneNode;
29
+ wink: import("../author.js").SceneNode;
30
+ cute: import("../author.js").SceneNode;
31
+ "wink.left": import("../author.js").SceneNode;
32
+ "wink.right": import("../author.js").SceneNode;
33
+ };
34
+ mouth: {
35
+ normal: import("../author.js").SceneNode;
36
+ happy: import("../author.js").SceneNode;
37
+ sad: import("../author.js").SceneNode;
38
+ angry: import("../author.js").SceneNode;
39
+ surprised: import("../author.js").SceneNode;
40
+ dead: import("../author.js").SceneNode;
41
+ small: import("../author.js").SceneNode;
42
+ worried: import("../author.js").SceneNode;
43
+ pout: import("../author.js").SceneNode;
44
+ open: import("../author.js").SceneNode;
45
+ };
46
+ blush: {
47
+ off: import("../author.js").SceneNode;
48
+ small: import("../author.js").SceneNode;
49
+ medium: import("../author.js").SceneNode;
50
+ big: import("../author.js").SceneNode;
51
+ };
52
+ };
53
+ };
54
+ readonly expressions: {
55
+ readonly angry: {
56
+ readonly variants: {
57
+ readonly eyes: "angry";
58
+ readonly mouth: "angry";
59
+ readonly blush: "off";
60
+ };
61
+ readonly motion: {
62
+ target: string;
63
+ translate: {
64
+ x: number;
65
+ y: number;
66
+ };
67
+ durationMs: number;
68
+ repeat: "none";
69
+ };
70
+ };
71
+ readonly confused: {
72
+ readonly variants: {
73
+ readonly eyes: "confused";
74
+ readonly mouth: "normal";
75
+ readonly blush: "off";
76
+ };
77
+ readonly motion: {
78
+ target: string;
79
+ translate: {
80
+ x: number;
81
+ y: number;
82
+ };
83
+ durationMs: number;
84
+ repeat: "none";
85
+ };
86
+ };
87
+ readonly cute: {
88
+ readonly variants: {
89
+ readonly eyes: "cute";
90
+ readonly mouth: "happy";
91
+ readonly blush: "big";
92
+ };
93
+ readonly motion: {
94
+ target: string;
95
+ translate: {
96
+ x: number;
97
+ y: number;
98
+ };
99
+ durationMs: number;
100
+ repeat: "none";
101
+ };
102
+ };
103
+ readonly dead: {
104
+ readonly variants: {
105
+ readonly eyes: "dead";
106
+ readonly mouth: "dead";
107
+ readonly blush: "off";
108
+ };
109
+ };
110
+ readonly happy: {
111
+ readonly variants: {
112
+ readonly eyes: "happy";
113
+ readonly mouth: "happy";
114
+ readonly blush: "medium";
115
+ };
116
+ readonly motion: {
117
+ target: string;
118
+ translate: {
119
+ x: number;
120
+ y: number;
121
+ };
122
+ durationMs: number;
123
+ repeat: "none";
124
+ };
125
+ };
126
+ readonly nervous: {
127
+ readonly variants: {
128
+ readonly eyes: "nervous";
129
+ readonly mouth: "worried";
130
+ readonly blush: "off";
131
+ };
132
+ readonly motion: {
133
+ target: string;
134
+ translate: {
135
+ x: number;
136
+ y: number;
137
+ };
138
+ durationMs: number;
139
+ repeat: "none";
140
+ };
141
+ };
142
+ readonly normal: {
143
+ readonly variants: {
144
+ readonly eyes: "normal";
145
+ readonly mouth: "normal";
146
+ readonly blush: "off";
147
+ };
148
+ readonly motion: {
149
+ target: string;
150
+ translate: {
151
+ x: number;
152
+ y: number;
153
+ };
154
+ durationMs: number;
155
+ repeat: "none";
156
+ };
157
+ };
158
+ readonly pleading: {
159
+ readonly variants: {
160
+ readonly eyes: "cute";
161
+ readonly mouth: "pout";
162
+ readonly blush: "medium";
163
+ };
164
+ readonly motion: {
165
+ target: string;
166
+ translate: {
167
+ x: number;
168
+ y: number;
169
+ };
170
+ durationMs: number;
171
+ repeat: "none";
172
+ };
173
+ };
174
+ readonly sad: {
175
+ readonly variants: {
176
+ readonly eyes: "sad";
177
+ readonly mouth: "sad";
178
+ readonly blush: "off";
179
+ };
180
+ readonly motion: {
181
+ target: string;
182
+ translate: {
183
+ x: number;
184
+ y: number;
185
+ };
186
+ durationMs: number;
187
+ repeat: "none";
188
+ };
189
+ };
190
+ readonly shy: {
191
+ readonly variants: {
192
+ readonly eyes: "shy";
193
+ readonly mouth: "small";
194
+ readonly blush: "small";
195
+ };
196
+ readonly motion: {
197
+ target: string;
198
+ translate: {
199
+ x: number;
200
+ y: number;
201
+ };
202
+ durationMs: number;
203
+ repeat: "none";
204
+ };
205
+ };
206
+ readonly sleepy: {
207
+ readonly variants: {
208
+ readonly eyes: "sleepy";
209
+ readonly mouth: "small";
210
+ readonly blush: "off";
211
+ };
212
+ readonly motion: {
213
+ target: string;
214
+ translate: {
215
+ x: number;
216
+ y: number;
217
+ };
218
+ durationMs: number;
219
+ repeat: "none";
220
+ };
221
+ };
222
+ readonly surprised: {
223
+ readonly variants: {
224
+ readonly eyes: "surprised";
225
+ readonly mouth: "surprised";
226
+ readonly blush: "off";
227
+ };
228
+ readonly motion: {
229
+ target: string;
230
+ translate: {
231
+ x: number;
232
+ y: number;
233
+ };
234
+ durationMs: number;
235
+ repeat: "none";
236
+ };
237
+ };
238
+ readonly wink: {
239
+ readonly variants: {
240
+ readonly eyes: "wink";
241
+ readonly mouth: "happy";
242
+ readonly blush: "small";
243
+ };
244
+ readonly variantChoices: {
245
+ readonly eyes: readonly ["wink.left", "wink.right"];
246
+ };
247
+ readonly motion: {
248
+ target: string;
249
+ translate: {
250
+ x: number;
251
+ y: number;
252
+ };
253
+ durationMs: number;
254
+ repeat: "none";
255
+ };
256
+ };
257
+ };
258
+ readonly activities: {
259
+ readonly idle: {
260
+ readonly motion: {
261
+ readonly target: "root";
262
+ readonly translate: {
263
+ readonly y: 0.5;
264
+ };
265
+ readonly durationMs: 2000;
266
+ readonly repeat: "yoyo";
267
+ };
268
+ readonly mouseInfluence: 1;
269
+ };
270
+ readonly listening: {
271
+ readonly motion: {
272
+ readonly target: "root";
273
+ readonly rotate: {
274
+ readonly x: -0.2;
275
+ };
276
+ readonly durationMs: 300;
277
+ readonly repeat: "yoyo";
278
+ };
279
+ readonly mouseInfluence: 0.3;
280
+ };
281
+ readonly processing: {
282
+ readonly mouseInfluence: 0.2;
283
+ };
284
+ readonly speaking: {
285
+ readonly motion: {
286
+ readonly target: "root";
287
+ readonly translate: {
288
+ readonly y: 0.5;
289
+ };
290
+ readonly durationMs: 1500;
291
+ readonly repeat: "yoyo";
292
+ };
293
+ readonly mouseInfluence: 0;
294
+ readonly mouthCycle: readonly [{
295
+ readonly durationMs: 100;
296
+ readonly mouth: "open";
297
+ }, {
298
+ readonly durationMs: 150;
299
+ readonly mouth: "base";
300
+ }, {
301
+ readonly durationMs: 100;
302
+ readonly mouth: "open";
303
+ }, {
304
+ readonly durationMs: 200;
305
+ readonly mouth: "base";
306
+ }];
307
+ };
308
+ readonly thinking: {
309
+ readonly motion: {
310
+ readonly target: "root";
311
+ readonly rotate: {
312
+ readonly z: 0.1;
313
+ };
314
+ readonly durationMs: 800;
315
+ readonly repeat: "yoyo";
316
+ };
317
+ readonly mouseInfluence: 0;
318
+ };
319
+ readonly error: {
320
+ readonly geometry: {
321
+ readonly expression: "dead";
322
+ };
323
+ readonly mouseInfluence: 0.1;
324
+ };
325
+ };
326
+ readonly defaultPresentation: {
327
+ readonly activity: "idle";
328
+ readonly expression: "normal";
329
+ };
330
+ }>;
331
+ export default base;