@holtjs/craft 0.0.0-stage → 0.2.0

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.
@@ -0,0 +1,1096 @@
1
+ import { u as __exportAll } from "./pixel-D3jgByB5.js";
2
+ import { $ as projectSocket2D, A as validateRigPixelSprite, B as RIG_EYE_MODES, C as validateRigCustomBody, D as rigClipFrameCount, E as evaluateRigClip, G as createRigState, H as RIG_MODEL_SCALE, I as RIG_COSMETIC_SLOTS, J as mat4Invert, K as getBodySockets, L as RIG_COS_E, M as RIG_BONE_NAMES, O as validateRigClip, Q as projectAllSockets2D, S as compileCustomBodySpec, T as RIG_PRIMITIVE_SHAPES, U as RIG_SIN_E, V as RIG_LIMITS, W as RIG_SOCKET_NAMES, X as mat4TransformDir, Y as mat4Mul, Z as mat4TransformPoint, _ as parseHexRgb, a as renderCosmeticSprite, at as quatMul, b as RIG_BODY_CATEGORIES, c as renderRigClipStrip, ct as RIG_BODIES, dt as RIG_BODY_KEYS, et as projectWorldPoint2D, ft as RIG_BODY_TAIL_STYLES, i as renderBodyRestPreview, it as quatIdentity, j as validateRigPrimitiveList, k as validateRigCosmetic, l as renderRigPose, lt as RIG_BODY_ATTACH_BONES, n as compositeSpriteRgba, nt as quatFromEuler, o as renderDecorPropSheet, ot as reachArm, p as derivePixelRamp, pt as rigBodyKeyFromIndex, q as mat4Compose, r as renderBodyAnimStrip, rt as quatFromUnitVectors, s as renderDecorPropSprite, st as updateRigMatrices, t as DEFAULT_RIG_COLORS, tt as quatFromAxisAngle, ut as RIG_BODY_EYE_STYLES, v as BUILTIN_ANIM_FRAMES, w as validateRigDecorProp, x as RIG_DECOR_GROUPS, y as evaluateBuiltinPose, z as RIG_EASE_MODES } from "./rig-render-DZBV9u2H.js";
3
+ import { n as bakeNormalMapRgba } from "./tilemap-BFH4_JLe.js";
4
+ // src/rig3d.ts
5
+ var rig3d_exports = /* @__PURE__ */ __exportAll({
6
+ BUILTIN_ANIM_FRAMES: () => BUILTIN_ANIM_FRAMES,
7
+ DEFAULT_RIG_COLORS: () => DEFAULT_RIG_COLORS,
8
+ GRAVEYARD_PRESETS: () => GRAVEYARD_PRESETS,
9
+ RIG_BODIES: () => RIG_BODIES,
10
+ RIG_BODY_ATTACH_BONES: () => RIG_BODY_ATTACH_BONES,
11
+ RIG_BODY_CATEGORIES: () => RIG_BODY_CATEGORIES,
12
+ RIG_BODY_EYE_STYLES: () => RIG_BODY_EYE_STYLES,
13
+ RIG_BODY_KEYS: () => RIG_BODY_KEYS,
14
+ RIG_BODY_TAIL_STYLES: () => RIG_BODY_TAIL_STYLES,
15
+ RIG_BONE_NAMES: () => RIG_BONE_NAMES,
16
+ RIG_CAMERA_ELEV_DEG: () => 13,
17
+ RIG_CAMERA_GROUND_Y: () => 29,
18
+ RIG_CELL_SIZE: () => 32,
19
+ RIG_COSMETIC_SLOTS: () => RIG_COSMETIC_SLOTS,
20
+ RIG_COS_E: () => RIG_COS_E,
21
+ RIG_DECOR_GROUPS: () => RIG_DECOR_GROUPS,
22
+ RIG_DUO_VIEW: () => 2,
23
+ RIG_EASE_MODES: () => RIG_EASE_MODES,
24
+ RIG_EYE_MODES: () => RIG_EYE_MODES,
25
+ RIG_LIMITS: () => RIG_LIMITS,
26
+ RIG_MODEL_SCALE: () => RIG_MODEL_SCALE,
27
+ RIG_PRIMITIVE_SHAPES: () => RIG_PRIMITIVE_SHAPES,
28
+ RIG_SIN_E: () => RIG_SIN_E,
29
+ RIG_SOCKET_NAMES: () => RIG_SOCKET_NAMES,
30
+ bakeDirectionalCharacterSheet: () => bakeDirectionalCharacterSheet,
31
+ compileCustomBodySpec: () => compileCustomBodySpec,
32
+ compositeSpriteRgba: () => compositeSpriteRgba,
33
+ createRigState: () => createRigState,
34
+ derivePixelRamp: () => derivePixelRamp,
35
+ evaluateBuiltinPose: () => evaluateBuiltinPose,
36
+ evaluateRigClip: () => evaluateRigClip,
37
+ getBodySockets: () => getBodySockets,
38
+ mat4Compose: () => mat4Compose,
39
+ mat4Invert: () => mat4Invert,
40
+ mat4Mul: () => mat4Mul,
41
+ mat4TransformDir: () => mat4TransformDir,
42
+ mat4TransformPoint: () => mat4TransformPoint,
43
+ parseHexRgb: () => parseHexRgb,
44
+ projectAllSockets2D: () => projectAllSockets2D,
45
+ projectSocket2D: () => projectSocket2D,
46
+ projectWorldPoint2D: () => projectWorldPoint2D,
47
+ quatFromAxisAngle: () => quatFromAxisAngle,
48
+ quatFromEuler: () => quatFromEuler,
49
+ quatFromUnitVectors: () => quatFromUnitVectors,
50
+ quatIdentity: () => quatIdentity,
51
+ quatMul: () => quatMul,
52
+ reachArm: () => reachArm,
53
+ renderBodyAnimStrip: () => renderBodyAnimStrip,
54
+ renderBodyRestPreview: () => renderBodyRestPreview,
55
+ renderCosmeticSprite: () => renderCosmeticSprite,
56
+ renderDecorPropSheet: () => renderDecorPropSheet,
57
+ renderDecorPropSprite: () => renderDecorPropSprite,
58
+ renderRigClipStrip: () => renderRigClipStrip,
59
+ renderRigPose: () => renderRigPose,
60
+ rigBodyKeyFromIndex: () => rigBodyKeyFromIndex,
61
+ rigClipFrameCount: () => rigClipFrameCount,
62
+ updateRigMatrices: () => updateRigMatrices,
63
+ validateRigClip: () => validateRigClip,
64
+ validateRigCosmetic: () => validateRigCosmetic,
65
+ validateRigCustomBody: () => validateRigCustomBody,
66
+ validateRigDecorProp: () => validateRigDecorProp,
67
+ validateRigPixelSprite: () => validateRigPixelSprite,
68
+ validateRigPrimitiveList: () => validateRigPrimitiveList
69
+ });
70
+ /**
71
+ * Bake a complete multi-direction (`4-dir` S/E/N/W or `8-dir`) × multi-animation pixel-art character spritesheet
72
+ * with per-frame projected 2D socket coordinates (`handR`, `handL`, `headTop`, `back`, ...) and optional Sobel normal map.
73
+ */
74
+ function bakeDirectionalCharacterSheet(bodyOrCustom, opts = {}) {
75
+ const isCustomSpec = typeof bodyOrCustom === "object" && "base" in bodyOrCustom;
76
+ const body = isCustomSpec ? compileCustomBodySpec(bodyOrCustom) : bodyOrCustom;
77
+ const resolvedColors = opts.colors ?? (isCustomSpec && bodyOrCustom.defaultColors ? {
78
+ fur: bodyOrCustom.defaultColors.fur ? {
79
+ fur: parseHexRgb(bodyOrCustom.defaultColors.fur),
80
+ shade: DEFAULT_RIG_COLORS.fur.shade
81
+ } : DEFAULT_RIG_COLORS.fur,
82
+ belly: bodyOrCustom.defaultColors.belly ? parseHexRgb(bodyOrCustom.defaultColors.belly) : DEFAULT_RIG_COLORS.belly,
83
+ scarf: bodyOrCustom.defaultColors.scarf === null ? null : bodyOrCustom.defaultColors.scarf ? parseHexRgb(bodyOrCustom.defaultColors.scarf) : DEFAULT_RIG_COLORS.scarf
84
+ } : DEFAULT_RIG_COLORS);
85
+ const cellSize = opts.cellSize ?? 32;
86
+ const ss = opts.ss ?? 2;
87
+ const dir16List = (opts.dirs ?? 4) === 8 ? [
88
+ 0,
89
+ 2,
90
+ 4,
91
+ 6,
92
+ 8,
93
+ 10,
94
+ 12,
95
+ 14
96
+ ] : [
97
+ 0,
98
+ 4,
99
+ 8,
100
+ 12
101
+ ];
102
+ const rowSpecs = opts.rows ?? [{
103
+ clip: "idle",
104
+ name: "idle"
105
+ }, {
106
+ clip: "walk",
107
+ name: "walk"
108
+ }];
109
+ let maxFrames = 1;
110
+ const resolvedRows = rowSpecs.map((r) => {
111
+ const frameCount = typeof r.clip === "string" ? BUILTIN_ANIM_FRAMES[r.clip]?.frames ?? 4 : rigClipFrameCount(r.clip);
112
+ if (frameCount > maxFrames) maxFrames = frameCount;
113
+ const name = r.name ?? (typeof r.clip === "string" ? r.clip : r.clip.id);
114
+ return {
115
+ clip: r.clip,
116
+ name,
117
+ frameCount
118
+ };
119
+ });
120
+ const totalRows = resolvedRows.length * dir16List.length;
121
+ const width = maxFrames * cellSize;
122
+ const height = totalRows * cellSize;
123
+ const rgba = new Uint8ClampedArray(width * height * 4);
124
+ const frames = [];
125
+ let rowCursor = 0;
126
+ for (const row of resolvedRows) for (let dIdx = 0; dIdx < dir16List.length; dIdx++) {
127
+ const dir16 = dir16List[dIdx];
128
+ for (let f = 0; f < row.frameCount; f++) {
129
+ const pose = typeof row.clip === "string" ? evaluateBuiltinPose(body, row.clip, f, dir16) : evaluateRigClip(body, row.clip, row.clip.loop ? f / row.frameCount : row.frameCount > 1 ? f / (row.frameCount - 1) : 0, dir16);
130
+ const cell = renderRigPose(pose, {
131
+ cellSize,
132
+ ss,
133
+ colors: resolvedColors,
134
+ cosmetics: opts.cosmetics
135
+ });
136
+ const ox = f * cellSize;
137
+ const oy = rowCursor * cellSize;
138
+ for (let y = 0; y < cellSize; y++) {
139
+ const srcOff = y * cellSize * 4;
140
+ const dstOff = ((oy + y) * width + ox) * 4;
141
+ rgba.set(cell.rgba.subarray(srcOff, srcOff + cellSize * 4), dstOff);
142
+ }
143
+ frames.push({
144
+ key: `${row.name}_d${dIdx}_f${f}`,
145
+ clip: row.name,
146
+ dirIndex: dIdx,
147
+ dir16,
148
+ frame: f,
149
+ x: ox,
150
+ y: oy,
151
+ w: cellSize,
152
+ h: cellSize,
153
+ sockets: projectAllSockets2D(pose)
154
+ });
155
+ }
156
+ rowCursor++;
157
+ }
158
+ const normalRgba = opts.bakeNormals !== false ? bakeNormalMapRgba(rgba, width, height, { strength: 2.5 }) : void 0;
159
+ return {
160
+ width,
161
+ height,
162
+ cellSize,
163
+ columns: maxFrames,
164
+ rowCount: totalRows,
165
+ rgba,
166
+ ...normalRgba ? { normalRgba } : {},
167
+ frames
168
+ };
169
+ }
170
+ const GRAVEYARD_PRESETS = {
171
+ keeperBody: {
172
+ id: "craft:graveyard:keeper",
173
+ name: "Graveyard Keeper",
174
+ base: "A",
175
+ category: "character",
176
+ head: {
177
+ c: [
178
+ 0,
179
+ 6.9,
180
+ .3
181
+ ],
182
+ r: [
183
+ 8.8,
184
+ 7.6,
185
+ 8
186
+ ],
187
+ sq: 2.5
188
+ },
189
+ torso: {
190
+ c: [
191
+ 0,
192
+ 7.4,
193
+ -.1
194
+ ],
195
+ r: [
196
+ 6.8,
197
+ 6.2,
198
+ 5.8
199
+ ],
200
+ sq: 2.6
201
+ },
202
+ belly: {
203
+ c: [
204
+ 0,
205
+ 6.5,
206
+ 2.5
207
+ ],
208
+ r: [
209
+ 4.8,
210
+ 4.6,
211
+ 3.8
212
+ ]
213
+ },
214
+ muzzle: {
215
+ c: [
216
+ 0,
217
+ -2.6,
218
+ 6.8
219
+ ],
220
+ r: [
221
+ 4.2,
222
+ 2.5,
223
+ 2.2
224
+ ]
225
+ },
226
+ nose: [
227
+ 0,
228
+ -.9,
229
+ 8.6
230
+ ],
231
+ ear: { hidden: true },
232
+ blush: { hidden: true },
233
+ tail: { hidden: true },
234
+ eye: {
235
+ x: 3.4,
236
+ y: 1.2,
237
+ style: "dot"
238
+ },
239
+ colors: {
240
+ head: "#f1c69e",
241
+ muzzle: "#5c3a24",
242
+ nose: "#d99b72",
243
+ torso: "#2f4562",
244
+ belly: "#7c5333",
245
+ arm: "#3a5475",
246
+ feet: "#2b211b"
247
+ },
248
+ defaultColors: { scarf: "#7c2d12" },
249
+ extras: [{
250
+ bone: "head",
251
+ primitives: [{
252
+ shape: "ellipsoid",
253
+ pos: [
254
+ 0,
255
+ 2.2,
256
+ -1.2
257
+ ],
258
+ size: [
259
+ 9.4,
260
+ 7.2,
261
+ 8.6
262
+ ],
263
+ color: "#24354d"
264
+ }, {
265
+ shape: "cone",
266
+ pos: [
267
+ 0,
268
+ 6.8,
269
+ -3.2
270
+ ],
271
+ size: [
272
+ 5.2,
273
+ 6.5,
274
+ 5.2
275
+ ],
276
+ rot: [
277
+ -.55,
278
+ 0,
279
+ 0
280
+ ],
281
+ color: "#24354d"
282
+ }]
283
+ }, {
284
+ bone: "hips",
285
+ primitives: [{
286
+ shape: "cylinder",
287
+ pos: [
288
+ 0,
289
+ 4.8,
290
+ .2
291
+ ],
292
+ size: [
293
+ 6.9,
294
+ 1.8,
295
+ 6
296
+ ],
297
+ color: "#3b2618"
298
+ }, {
299
+ shape: "box",
300
+ pos: [
301
+ 0,
302
+ 4.8,
303
+ 5.9
304
+ ],
305
+ size: [
306
+ 1.5,
307
+ 1.2,
308
+ .7
309
+ ],
310
+ color: "#eab308"
311
+ }]
312
+ }]
313
+ },
314
+ zombieBody: {
315
+ id: "craft:graveyard:zombie",
316
+ name: "Risen Zombie",
317
+ base: "A",
318
+ category: "character",
319
+ head: {
320
+ c: [
321
+ 0,
322
+ 6.4,
323
+ 1.1
324
+ ],
325
+ r: [
326
+ 8.6,
327
+ 7.4,
328
+ 7.8
329
+ ],
330
+ sq: 2.6
331
+ },
332
+ torso: {
333
+ c: [
334
+ 0,
335
+ 7,
336
+ .2
337
+ ],
338
+ r: [
339
+ 6.5,
340
+ 5.9,
341
+ 5.5
342
+ ],
343
+ sq: 2.5
344
+ },
345
+ belly: {
346
+ c: [
347
+ 0,
348
+ 6.4,
349
+ 2.3
350
+ ],
351
+ r: [
352
+ 4.5,
353
+ 4.2,
354
+ 3.6
355
+ ]
356
+ },
357
+ muzzle: {
358
+ c: [
359
+ 0,
360
+ -2.8,
361
+ 6.5
362
+ ],
363
+ r: [
364
+ 3.2,
365
+ 1.8,
366
+ 1.8
367
+ ]
368
+ },
369
+ nose: null,
370
+ ear: { hidden: true },
371
+ blush: { hidden: true },
372
+ tail: { hidden: true },
373
+ eye: {
374
+ x: 3.5,
375
+ y: .9,
376
+ style: "dot"
377
+ },
378
+ colors: {
379
+ head: "#6b8e67",
380
+ muzzle: "#476146",
381
+ eye: "#f59e0b",
382
+ torso: "#3f3b4d",
383
+ belly: "#565264",
384
+ arm: "#6b8e67",
385
+ feet: "#292524"
386
+ },
387
+ defaultColors: { scarf: null }
388
+ },
389
+ cosmetics: {
390
+ ironAxe: {
391
+ id: "craft:tool:iron-axe",
392
+ name: "Iron Woodcutter Axe",
393
+ socket: "handR",
394
+ slot: "hand",
395
+ primitives: [
396
+ {
397
+ shape: "cylinder",
398
+ pos: [
399
+ 0,
400
+ 3.2,
401
+ 0
402
+ ],
403
+ size: [
404
+ .85,
405
+ 11.5,
406
+ .85
407
+ ],
408
+ color: "#854d0e"
409
+ },
410
+ {
411
+ shape: "box",
412
+ pos: [
413
+ 0,
414
+ 7.2,
415
+ 2
416
+ ],
417
+ size: [
418
+ 1.1,
419
+ 2.6,
420
+ 2.8
421
+ ],
422
+ color: "#94a3b8"
423
+ },
424
+ {
425
+ shape: "box",
426
+ pos: [
427
+ 0,
428
+ 7.2,
429
+ 4.1
430
+ ],
431
+ size: [
432
+ .7,
433
+ 3.2,
434
+ .9
435
+ ],
436
+ color: "#e2e8f0"
437
+ }
438
+ ]
439
+ },
440
+ blazingTorch: {
441
+ id: "craft:tool:torch",
442
+ name: "Watchman Torch",
443
+ socket: "handL",
444
+ slot: "hand",
445
+ primitives: [
446
+ {
447
+ shape: "cylinder",
448
+ pos: [
449
+ 0,
450
+ 3,
451
+ 0
452
+ ],
453
+ size: [
454
+ .9,
455
+ 9.5,
456
+ .9
457
+ ],
458
+ color: "#78350f"
459
+ },
460
+ {
461
+ shape: "cylinder",
462
+ pos: [
463
+ 0,
464
+ 7.2,
465
+ 0
466
+ ],
467
+ size: [
468
+ 1.5,
469
+ 2.2,
470
+ 1.5
471
+ ],
472
+ color: "#451a03"
473
+ },
474
+ {
475
+ shape: "cone",
476
+ pos: [
477
+ 0,
478
+ 10.2,
479
+ 0
480
+ ],
481
+ size: [
482
+ 2.3,
483
+ 5.2,
484
+ 2.3
485
+ ],
486
+ color: "#f97316"
487
+ },
488
+ {
489
+ shape: "ellipsoid",
490
+ pos: [
491
+ 0,
492
+ 9.2,
493
+ 0
494
+ ],
495
+ size: [
496
+ 1.5,
497
+ 2,
498
+ 1.5
499
+ ],
500
+ color: "#fde047",
501
+ shade: "flat",
502
+ outline: false
503
+ }
504
+ ]
505
+ }
506
+ },
507
+ clips: {
508
+ chop: {
509
+ id: "craft:anim:chop",
510
+ name: "Overhead Chop",
511
+ durationMs: 480,
512
+ fps: 8,
513
+ dirs: 16,
514
+ loop: true,
515
+ keyframes: [
516
+ {
517
+ at: 0,
518
+ ease: "easeOut",
519
+ bones: { chest: { rot: [
520
+ -.18,
521
+ 0,
522
+ 0
523
+ ] } },
524
+ reach: { armR: { target: [
525
+ -4.5,
526
+ 8.5,
527
+ 2
528
+ ] } }
529
+ },
530
+ {
531
+ at: .45,
532
+ ease: "easeInOut",
533
+ bones: { chest: { rot: [
534
+ .28,
535
+ 0,
536
+ 0
537
+ ] } },
538
+ reach: { armR: { target: [
539
+ -2,
540
+ -4.5,
541
+ 10.5
542
+ ] } }
543
+ },
544
+ {
545
+ at: 1,
546
+ ease: "easeOut",
547
+ bones: { chest: { rot: [
548
+ -.18,
549
+ 0,
550
+ 0
551
+ ] } },
552
+ reach: { armR: { target: [
553
+ -4.5,
554
+ 8.5,
555
+ 2
556
+ ] } }
557
+ }
558
+ ]
559
+ },
560
+ shamble: {
561
+ id: "craft:anim:shamble",
562
+ name: "Zombie Shamble",
563
+ durationMs: 800,
564
+ fps: 6,
565
+ dirs: 16,
566
+ loop: true,
567
+ keyframes: [{
568
+ at: 0,
569
+ bones: {
570
+ chest: { rot: [
571
+ .26,
572
+ 0,
573
+ -.1
574
+ ] },
575
+ head: { rot: [
576
+ .12,
577
+ 0,
578
+ .14
579
+ ] },
580
+ legL: { rot: [
581
+ -.45,
582
+ 0,
583
+ 0
584
+ ] },
585
+ legR: { rot: [
586
+ .45,
587
+ 0,
588
+ 0
589
+ ] }
590
+ },
591
+ reach: {
592
+ armL: { target: [
593
+ 4.2,
594
+ -.5,
595
+ 10.5
596
+ ] },
597
+ armR: { target: [
598
+ -4.2,
599
+ -1.2,
600
+ 9.8
601
+ ] }
602
+ }
603
+ }, {
604
+ at: .5,
605
+ bones: {
606
+ chest: { rot: [
607
+ .3,
608
+ 0,
609
+ .1
610
+ ] },
611
+ head: { rot: [
612
+ .15,
613
+ 0,
614
+ -.14
615
+ ] },
616
+ legL: { rot: [
617
+ .45,
618
+ 0,
619
+ 0
620
+ ] },
621
+ legR: { rot: [
622
+ -.45,
623
+ 0,
624
+ 0
625
+ ] }
626
+ },
627
+ reach: {
628
+ armL: { target: [
629
+ 4.2,
630
+ -1.2,
631
+ 9.8
632
+ ] },
633
+ armR: { target: [
634
+ -4.2,
635
+ -.5,
636
+ 10.5
637
+ ] }
638
+ }
639
+ }]
640
+ }
641
+ },
642
+ props: {
643
+ tombstone: {
644
+ id: "craft:prop:tombstone",
645
+ name: "Carved Stone Tombstone",
646
+ group: "decor",
647
+ tilesW: 1,
648
+ tilesD: 1,
649
+ frameW: 32,
650
+ frameH: 40,
651
+ dirs: 4,
652
+ baseY: 36,
653
+ solidMask: 1,
654
+ primitives: [
655
+ {
656
+ shape: "box",
657
+ pos: [
658
+ 0,
659
+ 2,
660
+ 0
661
+ ],
662
+ size: [
663
+ 9.2,
664
+ 2,
665
+ 5.6
666
+ ],
667
+ color: "#64748b"
668
+ },
669
+ {
670
+ shape: "box",
671
+ pos: [
672
+ 0,
673
+ 9.5,
674
+ 0
675
+ ],
676
+ size: [
677
+ 7.2,
678
+ 7.5,
679
+ 3.2
680
+ ],
681
+ color: "#94a3b8"
682
+ },
683
+ {
684
+ shape: "cylinder",
685
+ pos: [
686
+ 0,
687
+ 16.5,
688
+ 0
689
+ ],
690
+ size: [
691
+ 7.2,
692
+ 6.4,
693
+ 3.2
694
+ ],
695
+ rot: [
696
+ Math.PI * .5,
697
+ 0,
698
+ 0
699
+ ],
700
+ color: "#94a3b8"
701
+ },
702
+ {
703
+ shape: "box",
704
+ pos: [
705
+ 0,
706
+ 12.5,
707
+ 3.3
708
+ ],
709
+ size: [
710
+ 1.1,
711
+ 4.8,
712
+ .7
713
+ ],
714
+ color: "#cbd5e1"
715
+ },
716
+ {
717
+ shape: "box",
718
+ pos: [
719
+ 0,
720
+ 14,
721
+ 3.3
722
+ ],
723
+ size: [
724
+ 3.2,
725
+ 1.1,
726
+ .7
727
+ ],
728
+ color: "#cbd5e1"
729
+ },
730
+ {
731
+ shape: "ellipsoid",
732
+ pos: [
733
+ -5.6,
734
+ 2.2,
735
+ 3.6
736
+ ],
737
+ size: [
738
+ 3.2,
739
+ 1.8,
740
+ 2.2
741
+ ],
742
+ color: "#4d7c0f"
743
+ }
744
+ ]
745
+ },
746
+ woodenChest: {
747
+ id: "craft:prop:wooden-chest",
748
+ name: "Iron-Banded Storage Chest",
749
+ group: "decor",
750
+ tilesW: 1,
751
+ tilesD: 1,
752
+ frameW: 32,
753
+ frameH: 36,
754
+ dirs: 4,
755
+ baseY: 32,
756
+ solidMask: 1,
757
+ primitives: [
758
+ {
759
+ shape: "box",
760
+ pos: [
761
+ 0,
762
+ 5.2,
763
+ 0
764
+ ],
765
+ size: [
766
+ 9.5,
767
+ 5.2,
768
+ 6.8
769
+ ],
770
+ color: "#92400e"
771
+ },
772
+ {
773
+ shape: "cylinder",
774
+ pos: [
775
+ 0,
776
+ 10.4,
777
+ 0
778
+ ],
779
+ size: [
780
+ 6.8,
781
+ 19,
782
+ 4.2
783
+ ],
784
+ rot: [
785
+ 0,
786
+ 0,
787
+ Math.PI * .5
788
+ ],
789
+ color: "#b45309"
790
+ },
791
+ {
792
+ shape: "box",
793
+ pos: [
794
+ -5.8,
795
+ 6.4,
796
+ 0
797
+ ],
798
+ size: [
799
+ 1.1,
800
+ 6.4,
801
+ 7.2
802
+ ],
803
+ color: "#475569"
804
+ },
805
+ {
806
+ shape: "box",
807
+ pos: [
808
+ 5.8,
809
+ 6.4,
810
+ 0
811
+ ],
812
+ size: [
813
+ 1.1,
814
+ 6.4,
815
+ 7.2
816
+ ],
817
+ color: "#475569"
818
+ },
819
+ {
820
+ shape: "box",
821
+ pos: [
822
+ 0,
823
+ 6.6,
824
+ 7
825
+ ],
826
+ size: [
827
+ 1.8,
828
+ 2.2,
829
+ .9
830
+ ],
831
+ color: "#eab308"
832
+ }
833
+ ]
834
+ },
835
+ stoneFurnace: {
836
+ id: "craft:prop:stone-furnace",
837
+ name: "Stone Smelting Furnace",
838
+ group: "decor",
839
+ tilesW: 2,
840
+ tilesD: 2,
841
+ frameW: 44,
842
+ frameH: 52,
843
+ dirs: 4,
844
+ baseY: 46,
845
+ solidMask: 15,
846
+ light: {
847
+ tone: "warm",
848
+ r: 3.5,
849
+ flicker: true
850
+ },
851
+ primitives: [
852
+ {
853
+ shape: "box",
854
+ pos: [
855
+ 0,
856
+ 2.4,
857
+ 0
858
+ ],
859
+ size: [
860
+ 13.5,
861
+ 2.4,
862
+ 11.5
863
+ ],
864
+ color: "#475569"
865
+ },
866
+ {
867
+ shape: "cylinder",
868
+ pos: [
869
+ 0,
870
+ 12,
871
+ -1
872
+ ],
873
+ size: [
874
+ 11.5,
875
+ 16,
876
+ 10.5
877
+ ],
878
+ color: "#64748b"
879
+ },
880
+ {
881
+ shape: "cylinder",
882
+ pos: [
883
+ 0,
884
+ 25,
885
+ -2.5
886
+ ],
887
+ size: [
888
+ 5.8,
889
+ 14,
890
+ 5.8
891
+ ],
892
+ color: "#475569"
893
+ },
894
+ {
895
+ shape: "box",
896
+ pos: [
897
+ 0,
898
+ 7.5,
899
+ 8.8
900
+ ],
901
+ size: [
902
+ 5.2,
903
+ 4.4,
904
+ 2.2
905
+ ],
906
+ color: "#ea580c"
907
+ },
908
+ {
909
+ shape: "ellipsoid",
910
+ pos: [
911
+ 0,
912
+ 6.8,
913
+ 9.8
914
+ ],
915
+ size: [
916
+ 3.6,
917
+ 2.5,
918
+ 1.4
919
+ ],
920
+ color: "#fde047",
921
+ shade: "flat",
922
+ outline: false
923
+ }
924
+ ]
925
+ },
926
+ arrowTower: {
927
+ id: "craft:prop:arrow-tower",
928
+ name: "Graveyard Watch Arrow Tower",
929
+ group: "game",
930
+ tilesW: 2,
931
+ tilesD: 2,
932
+ frameW: 44,
933
+ frameH: 60,
934
+ dirs: 1,
935
+ baseY: 54,
936
+ solidMask: 15,
937
+ primitives: [
938
+ {
939
+ shape: "box",
940
+ pos: [
941
+ 0,
942
+ 6,
943
+ 0
944
+ ],
945
+ size: [
946
+ 12.5,
947
+ 6,
948
+ 11.5
949
+ ],
950
+ color: "#64748b"
951
+ },
952
+ {
953
+ shape: "box",
954
+ pos: [
955
+ 0,
956
+ 19.5,
957
+ 0
958
+ ],
959
+ size: [
960
+ 9.5,
961
+ 10.5,
962
+ 9
963
+ ],
964
+ color: "#78350f"
965
+ },
966
+ {
967
+ shape: "box",
968
+ pos: [
969
+ 0,
970
+ 31,
971
+ 0
972
+ ],
973
+ size: [
974
+ 12,
975
+ 2.4,
976
+ 11.2
977
+ ],
978
+ color: "#92400e"
979
+ },
980
+ {
981
+ shape: "box",
982
+ pos: [
983
+ -8.5,
984
+ 35,
985
+ 7.8
986
+ ],
987
+ size: [
988
+ 3.2,
989
+ 2.6,
990
+ 3
991
+ ],
992
+ color: "#475569"
993
+ },
994
+ {
995
+ shape: "box",
996
+ pos: [
997
+ 8.5,
998
+ 35,
999
+ 7.8
1000
+ ],
1001
+ size: [
1002
+ 3.2,
1003
+ 2.6,
1004
+ 3
1005
+ ],
1006
+ color: "#475569"
1007
+ },
1008
+ {
1009
+ shape: "cone",
1010
+ pos: [
1011
+ 0,
1012
+ 42.5,
1013
+ 0
1014
+ ],
1015
+ size: [
1016
+ 12.8,
1017
+ 12,
1018
+ 12
1019
+ ],
1020
+ color: "#1e3a8a"
1021
+ }
1022
+ ]
1023
+ },
1024
+ ancientPine: {
1025
+ id: "craft:prop:ancient-pine",
1026
+ name: "Darkwood Pine Tree",
1027
+ group: "nature",
1028
+ tilesW: 1,
1029
+ tilesD: 1,
1030
+ frameW: 44,
1031
+ frameH: 58,
1032
+ dirs: 1,
1033
+ baseY: 52,
1034
+ solidMask: 1,
1035
+ primitives: [
1036
+ {
1037
+ shape: "cylinder",
1038
+ pos: [
1039
+ 0,
1040
+ 7,
1041
+ 0
1042
+ ],
1043
+ size: [
1044
+ 3.4,
1045
+ 14,
1046
+ 3.4
1047
+ ],
1048
+ color: "#78350f"
1049
+ },
1050
+ {
1051
+ shape: "cone",
1052
+ pos: [
1053
+ 0,
1054
+ 19,
1055
+ 0
1056
+ ],
1057
+ size: [
1058
+ 14,
1059
+ 16,
1060
+ 13
1061
+ ],
1062
+ color: "#166534"
1063
+ },
1064
+ {
1065
+ shape: "cone",
1066
+ pos: [
1067
+ 0,
1068
+ 29.5,
1069
+ 0
1070
+ ],
1071
+ size: [
1072
+ 11.2,
1073
+ 15,
1074
+ 10.5
1075
+ ],
1076
+ color: "#15803d"
1077
+ },
1078
+ {
1079
+ shape: "cone",
1080
+ pos: [
1081
+ 0,
1082
+ 39,
1083
+ 0
1084
+ ],
1085
+ size: [
1086
+ 7.8,
1087
+ 13,
1088
+ 7.5
1089
+ ],
1090
+ color: "#22c55e"
1091
+ }
1092
+ ]
1093
+ }
1094
+ }
1095
+ };
1096
+ export { bakeDirectionalCharacterSheet as n, rig3d_exports as r, GRAVEYARD_PRESETS as t };