@holtjs/craft 0.1.0 → 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.
@@ -1,5 +1,3 @@
1
- import { u as __exportAll } from "./pixel-D3jgByB5.js";
2
- import { n as bakeNormalMapRgba } from "./tilemap-BFH4_JLe.js";
3
1
  // src/rig3d/rig-bodies.ts
4
2
  const RIG_BODY_KEYS = [
5
3
  "0",
@@ -4473,7 +4471,7 @@ function pushPrim(out, parentWorld, opts, cellSize, ss, proj) {
4473
4471
  if (!invWorld) return;
4474
4472
  const frameW = proj?.width ?? cellSize;
4475
4473
  const frameH = proj?.height ?? cellSize;
4476
- const groundY = proj?.groundY ?? 29;
4474
+ const groundY = proj?.groundY ?? (cellSize > 64 ? cellSize * .78 : 29);
4477
4475
  const cosE = proj?.cosE ?? RIG_COS_E;
4478
4476
  const sinE = proj?.sinE ?? RIG_SIN_E;
4479
4477
  const bx = opts.shape === "torus" ? (opts.torusR ?? 2) + 1.15 : 1.05;
@@ -6162,1096 +6160,4 @@ function renderDecorPropSheet(spec, opts) {
6162
6160
  function renderBodyRestPreview(bodyOrKey, dir16 = 0, colors) {
6163
6161
  return renderRigPose(createRigState(bodyOrKey, (dir16 & 15) / 16 * Math.PI * 2), { colors });
6164
6162
  }
6165
- // src/rig3d.ts
6166
- var rig3d_exports = /* @__PURE__ */ __exportAll({
6167
- BUILTIN_ANIM_FRAMES: () => BUILTIN_ANIM_FRAMES,
6168
- DEFAULT_RIG_COLORS: () => DEFAULT_RIG_COLORS,
6169
- GRAVEYARD_PRESETS: () => GRAVEYARD_PRESETS,
6170
- RIG_BODIES: () => RIG_BODIES,
6171
- RIG_BODY_ATTACH_BONES: () => RIG_BODY_ATTACH_BONES,
6172
- RIG_BODY_CATEGORIES: () => RIG_BODY_CATEGORIES,
6173
- RIG_BODY_EYE_STYLES: () => RIG_BODY_EYE_STYLES,
6174
- RIG_BODY_KEYS: () => RIG_BODY_KEYS,
6175
- RIG_BODY_TAIL_STYLES: () => RIG_BODY_TAIL_STYLES,
6176
- RIG_BONE_NAMES: () => RIG_BONE_NAMES,
6177
- RIG_CAMERA_ELEV_DEG: () => 13,
6178
- RIG_CAMERA_GROUND_Y: () => 29,
6179
- RIG_CELL_SIZE: () => 32,
6180
- RIG_COSMETIC_SLOTS: () => RIG_COSMETIC_SLOTS,
6181
- RIG_COS_E: () => RIG_COS_E,
6182
- RIG_DECOR_GROUPS: () => RIG_DECOR_GROUPS,
6183
- RIG_DUO_VIEW: () => 2,
6184
- RIG_EASE_MODES: () => RIG_EASE_MODES,
6185
- RIG_EYE_MODES: () => RIG_EYE_MODES,
6186
- RIG_LIMITS: () => RIG_LIMITS,
6187
- RIG_MODEL_SCALE: () => RIG_MODEL_SCALE,
6188
- RIG_PRIMITIVE_SHAPES: () => RIG_PRIMITIVE_SHAPES,
6189
- RIG_SIN_E: () => RIG_SIN_E,
6190
- RIG_SOCKET_NAMES: () => RIG_SOCKET_NAMES,
6191
- bakeDirectionalCharacterSheet: () => bakeDirectionalCharacterSheet,
6192
- compileCustomBodySpec: () => compileCustomBodySpec,
6193
- compositeSpriteRgba: () => compositeSpriteRgba,
6194
- createRigState: () => createRigState,
6195
- derivePixelRamp: () => derivePixelRamp,
6196
- evaluateBuiltinPose: () => evaluateBuiltinPose,
6197
- evaluateRigClip: () => evaluateRigClip,
6198
- getBodySockets: () => getBodySockets,
6199
- mat4Compose: () => mat4Compose,
6200
- mat4Invert: () => mat4Invert,
6201
- mat4Mul: () => mat4Mul,
6202
- mat4TransformDir: () => mat4TransformDir,
6203
- mat4TransformPoint: () => mat4TransformPoint,
6204
- parseHexRgb: () => parseHexRgb,
6205
- projectAllSockets2D: () => projectAllSockets2D,
6206
- projectSocket2D: () => projectSocket2D,
6207
- projectWorldPoint2D: () => projectWorldPoint2D,
6208
- quatFromAxisAngle: () => quatFromAxisAngle,
6209
- quatFromEuler: () => quatFromEuler,
6210
- quatFromUnitVectors: () => quatFromUnitVectors,
6211
- quatIdentity: () => quatIdentity,
6212
- quatMul: () => quatMul,
6213
- reachArm: () => reachArm,
6214
- renderBodyAnimStrip: () => renderBodyAnimStrip,
6215
- renderBodyRestPreview: () => renderBodyRestPreview,
6216
- renderCosmeticSprite: () => renderCosmeticSprite,
6217
- renderDecorPropSheet: () => renderDecorPropSheet,
6218
- renderDecorPropSprite: () => renderDecorPropSprite,
6219
- renderRigClipStrip: () => renderRigClipStrip,
6220
- renderRigPose: () => renderRigPose,
6221
- rigBodyKeyFromIndex: () => rigBodyKeyFromIndex,
6222
- rigClipFrameCount: () => rigClipFrameCount,
6223
- updateRigMatrices: () => updateRigMatrices,
6224
- validateRigClip: () => validateRigClip,
6225
- validateRigCosmetic: () => validateRigCosmetic,
6226
- validateRigCustomBody: () => validateRigCustomBody,
6227
- validateRigDecorProp: () => validateRigDecorProp,
6228
- validateRigPixelSprite: () => validateRigPixelSprite,
6229
- validateRigPrimitiveList: () => validateRigPrimitiveList
6230
- });
6231
- /**
6232
- * Bake a complete multi-direction (`4-dir` S/E/N/W or `8-dir`) × multi-animation pixel-art character spritesheet
6233
- * with per-frame projected 2D socket coordinates (`handR`, `handL`, `headTop`, `back`, ...) and optional Sobel normal map.
6234
- */
6235
- function bakeDirectionalCharacterSheet(bodyOrCustom, opts = {}) {
6236
- const isCustomSpec = typeof bodyOrCustom === "object" && "base" in bodyOrCustom;
6237
- const body = isCustomSpec ? compileCustomBodySpec(bodyOrCustom) : bodyOrCustom;
6238
- const resolvedColors = opts.colors ?? (isCustomSpec && bodyOrCustom.defaultColors ? {
6239
- fur: bodyOrCustom.defaultColors.fur ? {
6240
- fur: parseHexRgb(bodyOrCustom.defaultColors.fur),
6241
- shade: DEFAULT_RIG_COLORS.fur.shade
6242
- } : DEFAULT_RIG_COLORS.fur,
6243
- belly: bodyOrCustom.defaultColors.belly ? parseHexRgb(bodyOrCustom.defaultColors.belly) : DEFAULT_RIG_COLORS.belly,
6244
- scarf: bodyOrCustom.defaultColors.scarf === null ? null : bodyOrCustom.defaultColors.scarf ? parseHexRgb(bodyOrCustom.defaultColors.scarf) : DEFAULT_RIG_COLORS.scarf
6245
- } : DEFAULT_RIG_COLORS);
6246
- const cellSize = opts.cellSize ?? 32;
6247
- const ss = opts.ss ?? 2;
6248
- const dir16List = (opts.dirs ?? 4) === 8 ? [
6249
- 0,
6250
- 2,
6251
- 4,
6252
- 6,
6253
- 8,
6254
- 10,
6255
- 12,
6256
- 14
6257
- ] : [
6258
- 0,
6259
- 4,
6260
- 8,
6261
- 12
6262
- ];
6263
- const rowSpecs = opts.rows ?? [{
6264
- clip: "idle",
6265
- name: "idle"
6266
- }, {
6267
- clip: "walk",
6268
- name: "walk"
6269
- }];
6270
- let maxFrames = 1;
6271
- const resolvedRows = rowSpecs.map((r) => {
6272
- const frameCount = typeof r.clip === "string" ? BUILTIN_ANIM_FRAMES[r.clip]?.frames ?? 4 : rigClipFrameCount(r.clip);
6273
- if (frameCount > maxFrames) maxFrames = frameCount;
6274
- const name = r.name ?? (typeof r.clip === "string" ? r.clip : r.clip.id);
6275
- return {
6276
- clip: r.clip,
6277
- name,
6278
- frameCount
6279
- };
6280
- });
6281
- const totalRows = resolvedRows.length * dir16List.length;
6282
- const width = maxFrames * cellSize;
6283
- const height = totalRows * cellSize;
6284
- const rgba = new Uint8ClampedArray(width * height * 4);
6285
- const frames = [];
6286
- let rowCursor = 0;
6287
- for (const row of resolvedRows) for (let dIdx = 0; dIdx < dir16List.length; dIdx++) {
6288
- const dir16 = dir16List[dIdx];
6289
- for (let f = 0; f < row.frameCount; f++) {
6290
- 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);
6291
- const cell = renderRigPose(pose, {
6292
- cellSize,
6293
- ss,
6294
- colors: resolvedColors,
6295
- cosmetics: opts.cosmetics
6296
- });
6297
- const ox = f * cellSize;
6298
- const oy = rowCursor * cellSize;
6299
- for (let y = 0; y < cellSize; y++) {
6300
- const srcOff = y * cellSize * 4;
6301
- const dstOff = ((oy + y) * width + ox) * 4;
6302
- rgba.set(cell.rgba.subarray(srcOff, srcOff + cellSize * 4), dstOff);
6303
- }
6304
- frames.push({
6305
- key: `${row.name}_d${dIdx}_f${f}`,
6306
- clip: row.name,
6307
- dirIndex: dIdx,
6308
- dir16,
6309
- frame: f,
6310
- x: ox,
6311
- y: oy,
6312
- w: cellSize,
6313
- h: cellSize,
6314
- sockets: projectAllSockets2D(pose)
6315
- });
6316
- }
6317
- rowCursor++;
6318
- }
6319
- const normalRgba = opts.bakeNormals !== false ? bakeNormalMapRgba(rgba, width, height, { strength: 2.5 }) : void 0;
6320
- return {
6321
- width,
6322
- height,
6323
- cellSize,
6324
- columns: maxFrames,
6325
- rowCount: totalRows,
6326
- rgba,
6327
- ...normalRgba ? { normalRgba } : {},
6328
- frames
6329
- };
6330
- }
6331
- const GRAVEYARD_PRESETS = {
6332
- keeperBody: {
6333
- id: "craft:graveyard:keeper",
6334
- name: "Graveyard Keeper",
6335
- base: "A",
6336
- category: "character",
6337
- head: {
6338
- c: [
6339
- 0,
6340
- 6.9,
6341
- .3
6342
- ],
6343
- r: [
6344
- 8.8,
6345
- 7.6,
6346
- 8
6347
- ],
6348
- sq: 2.5
6349
- },
6350
- torso: {
6351
- c: [
6352
- 0,
6353
- 7.4,
6354
- -.1
6355
- ],
6356
- r: [
6357
- 6.8,
6358
- 6.2,
6359
- 5.8
6360
- ],
6361
- sq: 2.6
6362
- },
6363
- belly: {
6364
- c: [
6365
- 0,
6366
- 6.5,
6367
- 2.5
6368
- ],
6369
- r: [
6370
- 4.8,
6371
- 4.6,
6372
- 3.8
6373
- ]
6374
- },
6375
- muzzle: {
6376
- c: [
6377
- 0,
6378
- -2.6,
6379
- 6.8
6380
- ],
6381
- r: [
6382
- 4.2,
6383
- 2.5,
6384
- 2.2
6385
- ]
6386
- },
6387
- nose: [
6388
- 0,
6389
- -.9,
6390
- 8.6
6391
- ],
6392
- ear: { hidden: true },
6393
- blush: { hidden: true },
6394
- tail: { hidden: true },
6395
- eye: {
6396
- x: 3.4,
6397
- y: 1.2,
6398
- style: "dot"
6399
- },
6400
- colors: {
6401
- head: "#f1c69e",
6402
- muzzle: "#5c3a24",
6403
- nose: "#d99b72",
6404
- torso: "#2f4562",
6405
- belly: "#7c5333",
6406
- arm: "#3a5475",
6407
- feet: "#2b211b"
6408
- },
6409
- defaultColors: { scarf: "#7c2d12" },
6410
- extras: [{
6411
- bone: "head",
6412
- primitives: [{
6413
- shape: "ellipsoid",
6414
- pos: [
6415
- 0,
6416
- 2.2,
6417
- -1.2
6418
- ],
6419
- size: [
6420
- 9.4,
6421
- 7.2,
6422
- 8.6
6423
- ],
6424
- color: "#24354d"
6425
- }, {
6426
- shape: "cone",
6427
- pos: [
6428
- 0,
6429
- 6.8,
6430
- -3.2
6431
- ],
6432
- size: [
6433
- 5.2,
6434
- 6.5,
6435
- 5.2
6436
- ],
6437
- rot: [
6438
- -.55,
6439
- 0,
6440
- 0
6441
- ],
6442
- color: "#24354d"
6443
- }]
6444
- }, {
6445
- bone: "hips",
6446
- primitives: [{
6447
- shape: "cylinder",
6448
- pos: [
6449
- 0,
6450
- 4.8,
6451
- .2
6452
- ],
6453
- size: [
6454
- 6.9,
6455
- 1.8,
6456
- 6
6457
- ],
6458
- color: "#3b2618"
6459
- }, {
6460
- shape: "box",
6461
- pos: [
6462
- 0,
6463
- 4.8,
6464
- 5.9
6465
- ],
6466
- size: [
6467
- 1.5,
6468
- 1.2,
6469
- .7
6470
- ],
6471
- color: "#eab308"
6472
- }]
6473
- }]
6474
- },
6475
- zombieBody: {
6476
- id: "craft:graveyard:zombie",
6477
- name: "Risen Zombie",
6478
- base: "A",
6479
- category: "character",
6480
- head: {
6481
- c: [
6482
- 0,
6483
- 6.4,
6484
- 1.1
6485
- ],
6486
- r: [
6487
- 8.6,
6488
- 7.4,
6489
- 7.8
6490
- ],
6491
- sq: 2.6
6492
- },
6493
- torso: {
6494
- c: [
6495
- 0,
6496
- 7,
6497
- .2
6498
- ],
6499
- r: [
6500
- 6.5,
6501
- 5.9,
6502
- 5.5
6503
- ],
6504
- sq: 2.5
6505
- },
6506
- belly: {
6507
- c: [
6508
- 0,
6509
- 6.4,
6510
- 2.3
6511
- ],
6512
- r: [
6513
- 4.5,
6514
- 4.2,
6515
- 3.6
6516
- ]
6517
- },
6518
- muzzle: {
6519
- c: [
6520
- 0,
6521
- -2.8,
6522
- 6.5
6523
- ],
6524
- r: [
6525
- 3.2,
6526
- 1.8,
6527
- 1.8
6528
- ]
6529
- },
6530
- nose: null,
6531
- ear: { hidden: true },
6532
- blush: { hidden: true },
6533
- tail: { hidden: true },
6534
- eye: {
6535
- x: 3.5,
6536
- y: .9,
6537
- style: "dot"
6538
- },
6539
- colors: {
6540
- head: "#6b8e67",
6541
- muzzle: "#476146",
6542
- eye: "#f59e0b",
6543
- torso: "#3f3b4d",
6544
- belly: "#565264",
6545
- arm: "#6b8e67",
6546
- feet: "#292524"
6547
- },
6548
- defaultColors: { scarf: null }
6549
- },
6550
- cosmetics: {
6551
- ironAxe: {
6552
- id: "craft:tool:iron-axe",
6553
- name: "Iron Woodcutter Axe",
6554
- socket: "handR",
6555
- slot: "hand",
6556
- primitives: [
6557
- {
6558
- shape: "cylinder",
6559
- pos: [
6560
- 0,
6561
- 3.2,
6562
- 0
6563
- ],
6564
- size: [
6565
- .85,
6566
- 11.5,
6567
- .85
6568
- ],
6569
- color: "#854d0e"
6570
- },
6571
- {
6572
- shape: "box",
6573
- pos: [
6574
- 0,
6575
- 7.2,
6576
- 2
6577
- ],
6578
- size: [
6579
- 1.1,
6580
- 2.6,
6581
- 2.8
6582
- ],
6583
- color: "#94a3b8"
6584
- },
6585
- {
6586
- shape: "box",
6587
- pos: [
6588
- 0,
6589
- 7.2,
6590
- 4.1
6591
- ],
6592
- size: [
6593
- .7,
6594
- 3.2,
6595
- .9
6596
- ],
6597
- color: "#e2e8f0"
6598
- }
6599
- ]
6600
- },
6601
- blazingTorch: {
6602
- id: "craft:tool:torch",
6603
- name: "Watchman Torch",
6604
- socket: "handL",
6605
- slot: "hand",
6606
- primitives: [
6607
- {
6608
- shape: "cylinder",
6609
- pos: [
6610
- 0,
6611
- 3,
6612
- 0
6613
- ],
6614
- size: [
6615
- .9,
6616
- 9.5,
6617
- .9
6618
- ],
6619
- color: "#78350f"
6620
- },
6621
- {
6622
- shape: "cylinder",
6623
- pos: [
6624
- 0,
6625
- 7.2,
6626
- 0
6627
- ],
6628
- size: [
6629
- 1.5,
6630
- 2.2,
6631
- 1.5
6632
- ],
6633
- color: "#451a03"
6634
- },
6635
- {
6636
- shape: "cone",
6637
- pos: [
6638
- 0,
6639
- 10.2,
6640
- 0
6641
- ],
6642
- size: [
6643
- 2.3,
6644
- 5.2,
6645
- 2.3
6646
- ],
6647
- color: "#f97316"
6648
- },
6649
- {
6650
- shape: "ellipsoid",
6651
- pos: [
6652
- 0,
6653
- 9.2,
6654
- 0
6655
- ],
6656
- size: [
6657
- 1.5,
6658
- 2,
6659
- 1.5
6660
- ],
6661
- color: "#fde047",
6662
- shade: "flat",
6663
- outline: false
6664
- }
6665
- ]
6666
- }
6667
- },
6668
- clips: {
6669
- chop: {
6670
- id: "craft:anim:chop",
6671
- name: "Overhead Chop",
6672
- durationMs: 480,
6673
- fps: 8,
6674
- dirs: 16,
6675
- loop: true,
6676
- keyframes: [
6677
- {
6678
- at: 0,
6679
- ease: "easeOut",
6680
- bones: { chest: { rot: [
6681
- -.18,
6682
- 0,
6683
- 0
6684
- ] } },
6685
- reach: { armR: { target: [
6686
- -4.5,
6687
- 8.5,
6688
- 2
6689
- ] } }
6690
- },
6691
- {
6692
- at: .45,
6693
- ease: "easeInOut",
6694
- bones: { chest: { rot: [
6695
- .28,
6696
- 0,
6697
- 0
6698
- ] } },
6699
- reach: { armR: { target: [
6700
- -2,
6701
- -4.5,
6702
- 10.5
6703
- ] } }
6704
- },
6705
- {
6706
- at: 1,
6707
- ease: "easeOut",
6708
- bones: { chest: { rot: [
6709
- -.18,
6710
- 0,
6711
- 0
6712
- ] } },
6713
- reach: { armR: { target: [
6714
- -4.5,
6715
- 8.5,
6716
- 2
6717
- ] } }
6718
- }
6719
- ]
6720
- },
6721
- shamble: {
6722
- id: "craft:anim:shamble",
6723
- name: "Zombie Shamble",
6724
- durationMs: 800,
6725
- fps: 6,
6726
- dirs: 16,
6727
- loop: true,
6728
- keyframes: [{
6729
- at: 0,
6730
- bones: {
6731
- chest: { rot: [
6732
- .26,
6733
- 0,
6734
- -.1
6735
- ] },
6736
- head: { rot: [
6737
- .12,
6738
- 0,
6739
- .14
6740
- ] },
6741
- legL: { rot: [
6742
- -.45,
6743
- 0,
6744
- 0
6745
- ] },
6746
- legR: { rot: [
6747
- .45,
6748
- 0,
6749
- 0
6750
- ] }
6751
- },
6752
- reach: {
6753
- armL: { target: [
6754
- 4.2,
6755
- -.5,
6756
- 10.5
6757
- ] },
6758
- armR: { target: [
6759
- -4.2,
6760
- -1.2,
6761
- 9.8
6762
- ] }
6763
- }
6764
- }, {
6765
- at: .5,
6766
- bones: {
6767
- chest: { rot: [
6768
- .3,
6769
- 0,
6770
- .1
6771
- ] },
6772
- head: { rot: [
6773
- .15,
6774
- 0,
6775
- -.14
6776
- ] },
6777
- legL: { rot: [
6778
- .45,
6779
- 0,
6780
- 0
6781
- ] },
6782
- legR: { rot: [
6783
- -.45,
6784
- 0,
6785
- 0
6786
- ] }
6787
- },
6788
- reach: {
6789
- armL: { target: [
6790
- 4.2,
6791
- -1.2,
6792
- 9.8
6793
- ] },
6794
- armR: { target: [
6795
- -4.2,
6796
- -.5,
6797
- 10.5
6798
- ] }
6799
- }
6800
- }]
6801
- }
6802
- },
6803
- props: {
6804
- tombstone: {
6805
- id: "craft:prop:tombstone",
6806
- name: "Carved Stone Tombstone",
6807
- group: "decor",
6808
- tilesW: 1,
6809
- tilesD: 1,
6810
- frameW: 32,
6811
- frameH: 40,
6812
- dirs: 4,
6813
- baseY: 36,
6814
- solidMask: 1,
6815
- primitives: [
6816
- {
6817
- shape: "box",
6818
- pos: [
6819
- 0,
6820
- 2,
6821
- 0
6822
- ],
6823
- size: [
6824
- 9.2,
6825
- 2,
6826
- 5.6
6827
- ],
6828
- color: "#64748b"
6829
- },
6830
- {
6831
- shape: "box",
6832
- pos: [
6833
- 0,
6834
- 9.5,
6835
- 0
6836
- ],
6837
- size: [
6838
- 7.2,
6839
- 7.5,
6840
- 3.2
6841
- ],
6842
- color: "#94a3b8"
6843
- },
6844
- {
6845
- shape: "cylinder",
6846
- pos: [
6847
- 0,
6848
- 16.5,
6849
- 0
6850
- ],
6851
- size: [
6852
- 7.2,
6853
- 6.4,
6854
- 3.2
6855
- ],
6856
- rot: [
6857
- Math.PI * .5,
6858
- 0,
6859
- 0
6860
- ],
6861
- color: "#94a3b8"
6862
- },
6863
- {
6864
- shape: "box",
6865
- pos: [
6866
- 0,
6867
- 12.5,
6868
- 3.3
6869
- ],
6870
- size: [
6871
- 1.1,
6872
- 4.8,
6873
- .7
6874
- ],
6875
- color: "#cbd5e1"
6876
- },
6877
- {
6878
- shape: "box",
6879
- pos: [
6880
- 0,
6881
- 14,
6882
- 3.3
6883
- ],
6884
- size: [
6885
- 3.2,
6886
- 1.1,
6887
- .7
6888
- ],
6889
- color: "#cbd5e1"
6890
- },
6891
- {
6892
- shape: "ellipsoid",
6893
- pos: [
6894
- -5.6,
6895
- 2.2,
6896
- 3.6
6897
- ],
6898
- size: [
6899
- 3.2,
6900
- 1.8,
6901
- 2.2
6902
- ],
6903
- color: "#4d7c0f"
6904
- }
6905
- ]
6906
- },
6907
- woodenChest: {
6908
- id: "craft:prop:wooden-chest",
6909
- name: "Iron-Banded Storage Chest",
6910
- group: "decor",
6911
- tilesW: 1,
6912
- tilesD: 1,
6913
- frameW: 32,
6914
- frameH: 36,
6915
- dirs: 4,
6916
- baseY: 32,
6917
- solidMask: 1,
6918
- primitives: [
6919
- {
6920
- shape: "box",
6921
- pos: [
6922
- 0,
6923
- 5.2,
6924
- 0
6925
- ],
6926
- size: [
6927
- 9.5,
6928
- 5.2,
6929
- 6.8
6930
- ],
6931
- color: "#92400e"
6932
- },
6933
- {
6934
- shape: "cylinder",
6935
- pos: [
6936
- 0,
6937
- 10.4,
6938
- 0
6939
- ],
6940
- size: [
6941
- 6.8,
6942
- 19,
6943
- 4.2
6944
- ],
6945
- rot: [
6946
- 0,
6947
- 0,
6948
- Math.PI * .5
6949
- ],
6950
- color: "#b45309"
6951
- },
6952
- {
6953
- shape: "box",
6954
- pos: [
6955
- -5.8,
6956
- 6.4,
6957
- 0
6958
- ],
6959
- size: [
6960
- 1.1,
6961
- 6.4,
6962
- 7.2
6963
- ],
6964
- color: "#475569"
6965
- },
6966
- {
6967
- shape: "box",
6968
- pos: [
6969
- 5.8,
6970
- 6.4,
6971
- 0
6972
- ],
6973
- size: [
6974
- 1.1,
6975
- 6.4,
6976
- 7.2
6977
- ],
6978
- color: "#475569"
6979
- },
6980
- {
6981
- shape: "box",
6982
- pos: [
6983
- 0,
6984
- 6.6,
6985
- 7
6986
- ],
6987
- size: [
6988
- 1.8,
6989
- 2.2,
6990
- .9
6991
- ],
6992
- color: "#eab308"
6993
- }
6994
- ]
6995
- },
6996
- stoneFurnace: {
6997
- id: "craft:prop:stone-furnace",
6998
- name: "Stone Smelting Furnace",
6999
- group: "decor",
7000
- tilesW: 2,
7001
- tilesD: 2,
7002
- frameW: 44,
7003
- frameH: 52,
7004
- dirs: 4,
7005
- baseY: 46,
7006
- solidMask: 15,
7007
- light: {
7008
- tone: "warm",
7009
- r: 3.5,
7010
- flicker: true
7011
- },
7012
- primitives: [
7013
- {
7014
- shape: "box",
7015
- pos: [
7016
- 0,
7017
- 2.4,
7018
- 0
7019
- ],
7020
- size: [
7021
- 13.5,
7022
- 2.4,
7023
- 11.5
7024
- ],
7025
- color: "#475569"
7026
- },
7027
- {
7028
- shape: "cylinder",
7029
- pos: [
7030
- 0,
7031
- 12,
7032
- -1
7033
- ],
7034
- size: [
7035
- 11.5,
7036
- 16,
7037
- 10.5
7038
- ],
7039
- color: "#64748b"
7040
- },
7041
- {
7042
- shape: "cylinder",
7043
- pos: [
7044
- 0,
7045
- 25,
7046
- -2.5
7047
- ],
7048
- size: [
7049
- 5.8,
7050
- 14,
7051
- 5.8
7052
- ],
7053
- color: "#475569"
7054
- },
7055
- {
7056
- shape: "box",
7057
- pos: [
7058
- 0,
7059
- 7.5,
7060
- 8.8
7061
- ],
7062
- size: [
7063
- 5.2,
7064
- 4.4,
7065
- 2.2
7066
- ],
7067
- color: "#ea580c"
7068
- },
7069
- {
7070
- shape: "ellipsoid",
7071
- pos: [
7072
- 0,
7073
- 6.8,
7074
- 9.8
7075
- ],
7076
- size: [
7077
- 3.6,
7078
- 2.5,
7079
- 1.4
7080
- ],
7081
- color: "#fde047",
7082
- shade: "flat",
7083
- outline: false
7084
- }
7085
- ]
7086
- },
7087
- arrowTower: {
7088
- id: "craft:prop:arrow-tower",
7089
- name: "Graveyard Watch Arrow Tower",
7090
- group: "game",
7091
- tilesW: 2,
7092
- tilesD: 2,
7093
- frameW: 44,
7094
- frameH: 60,
7095
- dirs: 1,
7096
- baseY: 54,
7097
- solidMask: 15,
7098
- primitives: [
7099
- {
7100
- shape: "box",
7101
- pos: [
7102
- 0,
7103
- 6,
7104
- 0
7105
- ],
7106
- size: [
7107
- 12.5,
7108
- 6,
7109
- 11.5
7110
- ],
7111
- color: "#64748b"
7112
- },
7113
- {
7114
- shape: "box",
7115
- pos: [
7116
- 0,
7117
- 19.5,
7118
- 0
7119
- ],
7120
- size: [
7121
- 9.5,
7122
- 10.5,
7123
- 9
7124
- ],
7125
- color: "#78350f"
7126
- },
7127
- {
7128
- shape: "box",
7129
- pos: [
7130
- 0,
7131
- 31,
7132
- 0
7133
- ],
7134
- size: [
7135
- 12,
7136
- 2.4,
7137
- 11.2
7138
- ],
7139
- color: "#92400e"
7140
- },
7141
- {
7142
- shape: "box",
7143
- pos: [
7144
- -8.5,
7145
- 35,
7146
- 7.8
7147
- ],
7148
- size: [
7149
- 3.2,
7150
- 2.6,
7151
- 3
7152
- ],
7153
- color: "#475569"
7154
- },
7155
- {
7156
- shape: "box",
7157
- pos: [
7158
- 8.5,
7159
- 35,
7160
- 7.8
7161
- ],
7162
- size: [
7163
- 3.2,
7164
- 2.6,
7165
- 3
7166
- ],
7167
- color: "#475569"
7168
- },
7169
- {
7170
- shape: "cone",
7171
- pos: [
7172
- 0,
7173
- 42.5,
7174
- 0
7175
- ],
7176
- size: [
7177
- 12.8,
7178
- 12,
7179
- 12
7180
- ],
7181
- color: "#1e3a8a"
7182
- }
7183
- ]
7184
- },
7185
- ancientPine: {
7186
- id: "craft:prop:ancient-pine",
7187
- name: "Darkwood Pine Tree",
7188
- group: "nature",
7189
- tilesW: 1,
7190
- tilesD: 1,
7191
- frameW: 44,
7192
- frameH: 58,
7193
- dirs: 1,
7194
- baseY: 52,
7195
- solidMask: 1,
7196
- primitives: [
7197
- {
7198
- shape: "cylinder",
7199
- pos: [
7200
- 0,
7201
- 7,
7202
- 0
7203
- ],
7204
- size: [
7205
- 3.4,
7206
- 14,
7207
- 3.4
7208
- ],
7209
- color: "#78350f"
7210
- },
7211
- {
7212
- shape: "cone",
7213
- pos: [
7214
- 0,
7215
- 19,
7216
- 0
7217
- ],
7218
- size: [
7219
- 14,
7220
- 16,
7221
- 13
7222
- ],
7223
- color: "#166534"
7224
- },
7225
- {
7226
- shape: "cone",
7227
- pos: [
7228
- 0,
7229
- 29.5,
7230
- 0
7231
- ],
7232
- size: [
7233
- 11.2,
7234
- 15,
7235
- 10.5
7236
- ],
7237
- color: "#15803d"
7238
- },
7239
- {
7240
- shape: "cone",
7241
- pos: [
7242
- 0,
7243
- 39,
7244
- 0
7245
- ],
7246
- size: [
7247
- 7.8,
7248
- 13,
7249
- 7.5
7250
- ],
7251
- color: "#22c55e"
7252
- }
7253
- ]
7254
- }
7255
- }
7256
- };
7257
- export { quatFromEuler as $, RIG_CAMERA_ELEV_DEG as A, RIG_SIN_E as B, evaluateRigClip as C, validateRigPixelSprite as D, validateRigCosmetic as E, RIG_DUO_VIEW as F, mat4Invert as G, createRigState as H, RIG_EASE_MODES as I, mat4TransformPoint as J, mat4Mul as K, RIG_EYE_MODES as L, RIG_CELL_SIZE as M, RIG_COSMETIC_SLOTS as N, validateRigPrimitiveList as O, RIG_COS_E as P, quatFromAxisAngle as Q, RIG_LIMITS as R, RIG_PRIMITIVE_SHAPES as S, validateRigClip as T, getBodySockets as U, RIG_SOCKET_NAMES as V, mat4Compose as W, projectSocket2D as X, projectAllSockets2D as Y, projectWorldPoint2D as Z, RIG_BODY_CATEGORIES as _, compositeSpriteRgba as a, RIG_BODIES as at, validateRigCustomBody as b, renderCosmeticSprite as c, RIG_BODY_KEYS as ct, renderRigClipStrip as d, quatFromUnitVectors as et, renderRigPose as f, evaluateBuiltinPose as g, BUILTIN_ANIM_FRAMES as h, DEFAULT_RIG_COLORS as i, updateRigMatrices as it, RIG_CAMERA_GROUND_Y as j, RIG_BONE_NAMES as k, renderDecorPropSheet as l, RIG_BODY_TAIL_STYLES as lt, parseHexRgb as m, bakeDirectionalCharacterSheet as n, quatMul as nt, renderBodyAnimStrip as o, RIG_BODY_ATTACH_BONES as ot, derivePixelRamp as p, mat4TransformDir as q, rig3d_exports as r, reachArm as rt, renderBodyRestPreview as s, RIG_BODY_EYE_STYLES as st, GRAVEYARD_PRESETS as t, quatIdentity as tt, renderDecorPropSprite as u, rigBodyKeyFromIndex as ut, RIG_DECOR_GROUPS as v, rigClipFrameCount as w, validateRigDecorProp as x, compileCustomBodySpec as y, RIG_MODEL_SCALE as z };
6163
+ export { projectSocket2D as $, validateRigPixelSprite as A, RIG_EYE_MODES as B, validateRigCustomBody as C, rigClipFrameCount as D, evaluateRigClip as E, RIG_CELL_SIZE as F, createRigState as G, RIG_MODEL_SCALE as H, RIG_COSMETIC_SLOTS as I, mat4Invert as J, getBodySockets as K, RIG_COS_E as L, RIG_BONE_NAMES as M, RIG_CAMERA_ELEV_DEG as N, validateRigClip as O, RIG_CAMERA_GROUND_Y as P, projectAllSockets2D as Q, RIG_DUO_VIEW as R, compileCustomBodySpec as S, RIG_PRIMITIVE_SHAPES as T, RIG_SIN_E as U, RIG_LIMITS as V, RIG_SOCKET_NAMES as W, mat4TransformDir as X, mat4Mul as Y, mat4TransformPoint as Z, parseHexRgb as _, renderCosmeticSprite as a, quatMul as at, RIG_BODY_CATEGORIES as b, renderRigClipStrip as c, RIG_BODIES as ct, buildBodyPrimitives as d, RIG_BODY_KEYS as dt, projectWorldPoint2D as et, GRP as f, RIG_BODY_TAIL_STYLES as ft, mixRgb as g, intersectPrimLocal as h, renderBodyRestPreview as i, quatIdentity as it, validateRigPrimitiveList as j, validateRigCosmetic as k, renderRigPose as l, RIG_BODY_ATTACH_BONES as lt, evalSurfaceMark as m, compositeSpriteRgba as n, quatFromEuler as nt, renderDecorPropSheet as o, reachArm as ot, derivePixelRamp as p, rigBodyKeyFromIndex as pt, mat4Compose as q, renderBodyAnimStrip as r, quatFromUnitVectors as rt, renderDecorPropSprite as s, updateRigMatrices as st, DEFAULT_RIG_COLORS as t, quatFromAxisAngle as tt, addDeclarativePrimitives as u, RIG_BODY_EYE_STYLES as ut, BUILTIN_ANIM_FRAMES as v, validateRigDecorProp as w, RIG_DECOR_GROUPS as x, evaluateBuiltinPose as y, RIG_EASE_MODES as z };