@digitalcanopy/assets 0.1.0 → 1.1.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.
Files changed (42) hide show
  1. package/README.md +55 -0
  2. package/dist/catalog/index.d.mts +94 -0
  3. package/dist/catalog/index.d.ts +94 -0
  4. package/dist/catalog/index.js +540 -0
  5. package/dist/catalog/index.mjs +30 -0
  6. package/dist/chunk-BUUV7WRE.mjs +502 -0
  7. package/dist/chunk-CIMJYYCP.mjs +3612 -0
  8. package/dist/chunk-FECYZWQ6.mjs +278 -0
  9. package/dist/chunk-MFWLT2XV.mjs +47 -0
  10. package/dist/index.d.mts +5 -0
  11. package/dist/index.d.ts +5 -0
  12. package/dist/index.js +4483 -0
  13. package/dist/index.mjs +74 -0
  14. package/dist/manifests/index.d.mts +79 -0
  15. package/dist/manifests/index.d.ts +79 -0
  16. package/dist/manifests/index.js +3647 -0
  17. package/dist/manifests/index.mjs +24 -0
  18. package/dist/registry/index.d.mts +98 -0
  19. package/dist/registry/index.d.ts +98 -0
  20. package/dist/registry/index.js +321 -0
  21. package/dist/registry/index.mjs +12 -0
  22. package/dist/resolvers/cdn.d.mts +16 -0
  23. package/dist/resolvers/cdn.d.ts +16 -0
  24. package/dist/resolvers/cdn.js +76 -0
  25. package/dist/resolvers/cdn.mjs +16 -0
  26. package/dist/types-Cy3PZIX4.d.mts +52 -0
  27. package/dist/types-_dmvJ9qx.d.ts +52 -0
  28. package/package.json +32 -11
  29. package/scripts/generate-manifests.mjs +0 -409
  30. package/src/__tests__/manifests.test.ts +0 -129
  31. package/src/__tests__/resolvers.test.ts +0 -55
  32. package/src/__tests__/sync-r2.test.ts +0 -82
  33. package/src/index.ts +0 -2
  34. package/src/manifests/index.ts +0 -81
  35. package/src/manifests/isometric-tiles.atlas.json +0 -592
  36. package/src/manifests/keys.ts +0 -160
  37. package/src/manifests/modular-characters.atlas.json +0 -856
  38. package/src/manifests/playing-cards.atlas.json +0 -1408
  39. package/src/manifests/ui-sprites.atlas.json +0 -568
  40. package/src/resolvers/index.ts +0 -62
  41. package/tsconfig.build.json +0 -12
  42. package/tsconfig.json +0 -20
package/dist/index.js ADDED
@@ -0,0 +1,4483 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ AssetRegistry: () => AssetRegistry,
24
+ CATALOG_ASSETS_SCHEMA_SQL: () => CATALOG_ASSETS_SCHEMA_SQL,
25
+ CATALOG_FULL_TABLE_NAME: () => CATALOG_FULL_TABLE_NAME,
26
+ CATALOG_SCHEMA_NAME: () => CATALOG_SCHEMA_NAME,
27
+ CATALOG_TABLE_NAME: () => CATALOG_TABLE_NAME,
28
+ CDN_BASE_URL: () => CDN_BASE_URL,
29
+ ISOMETRIC_TILES: () => ISOMETRIC_TILES,
30
+ KENNEY_CDN_BASE: () => KENNEY_CDN_BASE,
31
+ MODULAR_CHARACTERS: () => MODULAR_CHARACTERS,
32
+ PLAYING_CARDS: () => PLAYING_CARDS,
33
+ SEED_CATALOG_ASSETS: () => SEED_CATALOG_ASSETS,
34
+ UI_SPRITES: () => UI_SPRITES,
35
+ assetRegistry: () => assetRegistry,
36
+ createAssetRegistry: () => createAssetRegistry,
37
+ createCatalogMap: () => createCatalogMap,
38
+ filterCatalog: () => filterCatalog,
39
+ filterCatalogByCategory: () => filterCatalogByCategory,
40
+ filterCatalogByScope: () => filterCatalogByScope,
41
+ formatCatalogAssetKey: () => formatCatalogAssetKey,
42
+ getFrameCoordinates: () => getFrameCoordinates,
43
+ getKenneyAssetUrl: () => getKenneyAssetUrl,
44
+ getKenneyAudioUrl: () => getKenneyAudioUrl,
45
+ getKenneyCardUrl: () => getKenneyCardUrl,
46
+ getKenneyCharacterUrl: () => getKenneyCharacterUrl,
47
+ isCatalogAsset: () => isCatalogAsset,
48
+ isometricTilesAtlas: () => isometricTilesAtlas,
49
+ loadCatalogAssets: () => loadCatalogAssets,
50
+ modularCharactersAtlas: () => modularCharactersAtlas,
51
+ playingCardsAtlas: () => playingCardsAtlas,
52
+ toFlameSpriteData: () => toFlameSpriteData,
53
+ uiSpritesAtlas: () => uiSpritesAtlas,
54
+ validateCatalogAsset: () => validateCatalogAsset
55
+ });
56
+ module.exports = __toCommonJS(index_exports);
57
+
58
+ // src/resolvers/cdn.ts
59
+ var CDN_BASE_URL = "https://cdn.sunshade.icu/assets/kenney";
60
+ var KENNEY_CDN_BASE = CDN_BASE_URL;
61
+ function getKenneyAssetUrl(pack, assetPath, ext) {
62
+ const cleanPack = pack.replace(/^\/+|\/+$/g, "");
63
+ const cleanPath = assetPath.replace(/^\/+|\/+$/g, "");
64
+ if (ext) {
65
+ const cleanExt = ext.startsWith(".") ? ext.slice(1) : ext;
66
+ if (cleanPath.toLowerCase().endsWith(`.${cleanExt.toLowerCase()}`)) {
67
+ return `${CDN_BASE_URL}/${cleanPack}/${cleanPath}`;
68
+ }
69
+ return `${CDN_BASE_URL}/${cleanPack}/${cleanPath}.${cleanExt}`;
70
+ }
71
+ const hasExt = /\.[a-zA-Z0-9]+$/.test(cleanPath);
72
+ const finalPath = hasExt ? cleanPath : `${cleanPath}.png`;
73
+ return `${CDN_BASE_URL}/${cleanPack}/${finalPath}`;
74
+ }
75
+ function appendOrReplaceExtension(cleanKey, ext) {
76
+ const cleanExt = ext.startsWith(".") ? ext.slice(1) : ext;
77
+ if (cleanKey.toLowerCase().endsWith(`.${cleanExt.toLowerCase()}`)) {
78
+ return cleanKey;
79
+ }
80
+ const baseKey = cleanKey.replace(/\.[a-zA-Z0-9]+$/, "");
81
+ return `${baseKey}.${cleanExt}`;
82
+ }
83
+ function getKenneyAudioUrl(soundName, ext = "ogg") {
84
+ const cleanName = soundName.replace(/^\/+|\/+$/g, "");
85
+ return `${CDN_BASE_URL}/ui-pack/sounds/${appendOrReplaceExtension(cleanName, ext)}`;
86
+ }
87
+ function getKenneyCardUrl(cardKey, ext = "png") {
88
+ const cleanKey = cardKey.replace(/^\/+|\/+$/g, "");
89
+ return `${CDN_BASE_URL}/cards/${appendOrReplaceExtension(cleanKey, ext)}`;
90
+ }
91
+ function getKenneyCharacterUrl(category, itemKey, ext = "png") {
92
+ const cleanCategory = category.replace(/^\/+|\/+$/g, "");
93
+ const cleanKey = itemKey.replace(/^\/+|\/+$/g, "");
94
+ return `${CDN_BASE_URL}/modular-characters/${cleanCategory}/${appendOrReplaceExtension(cleanKey, ext)}`;
95
+ }
96
+
97
+ // src/manifests/playing-cards.atlas.json
98
+ var playing_cards_atlas_default = {
99
+ meta: {
100
+ app: "sunshade-atlas-pipeline",
101
+ version: "1.0.0",
102
+ image: "https://cdn.sunshade.icu/assets/kenney/cards/playing-cards-atlas.png",
103
+ format: "RGBA8888",
104
+ size: {
105
+ w: 2048,
106
+ h: 950
107
+ },
108
+ scale: "1",
109
+ pack: "playing-cards"
110
+ },
111
+ frames: {
112
+ "card-spades-a": {
113
+ frame: {
114
+ x: 0,
115
+ y: 0,
116
+ w: 140,
117
+ h: 190
118
+ },
119
+ rotated: false,
120
+ trimmed: false,
121
+ spriteSourceSize: {
122
+ x: 0,
123
+ y: 0,
124
+ w: 140,
125
+ h: 190
126
+ },
127
+ sourceSize: {
128
+ w: 140,
129
+ h: 190
130
+ },
131
+ anchor: {
132
+ ax: 0.5,
133
+ ay: 0.5
134
+ }
135
+ },
136
+ "card-spades-02": {
137
+ frame: {
138
+ x: 140,
139
+ y: 0,
140
+ w: 140,
141
+ h: 190
142
+ },
143
+ rotated: false,
144
+ trimmed: false,
145
+ spriteSourceSize: {
146
+ x: 0,
147
+ y: 0,
148
+ w: 140,
149
+ h: 190
150
+ },
151
+ sourceSize: {
152
+ w: 140,
153
+ h: 190
154
+ },
155
+ anchor: {
156
+ ax: 0.5,
157
+ ay: 0.5
158
+ }
159
+ },
160
+ "card-spades-03": {
161
+ frame: {
162
+ x: 280,
163
+ y: 0,
164
+ w: 140,
165
+ h: 190
166
+ },
167
+ rotated: false,
168
+ trimmed: false,
169
+ spriteSourceSize: {
170
+ x: 0,
171
+ y: 0,
172
+ w: 140,
173
+ h: 190
174
+ },
175
+ sourceSize: {
176
+ w: 140,
177
+ h: 190
178
+ },
179
+ anchor: {
180
+ ax: 0.5,
181
+ ay: 0.5
182
+ }
183
+ },
184
+ "card-spades-04": {
185
+ frame: {
186
+ x: 420,
187
+ y: 0,
188
+ w: 140,
189
+ h: 190
190
+ },
191
+ rotated: false,
192
+ trimmed: false,
193
+ spriteSourceSize: {
194
+ x: 0,
195
+ y: 0,
196
+ w: 140,
197
+ h: 190
198
+ },
199
+ sourceSize: {
200
+ w: 140,
201
+ h: 190
202
+ },
203
+ anchor: {
204
+ ax: 0.5,
205
+ ay: 0.5
206
+ }
207
+ },
208
+ "card-spades-05": {
209
+ frame: {
210
+ x: 560,
211
+ y: 0,
212
+ w: 140,
213
+ h: 190
214
+ },
215
+ rotated: false,
216
+ trimmed: false,
217
+ spriteSourceSize: {
218
+ x: 0,
219
+ y: 0,
220
+ w: 140,
221
+ h: 190
222
+ },
223
+ sourceSize: {
224
+ w: 140,
225
+ h: 190
226
+ },
227
+ anchor: {
228
+ ax: 0.5,
229
+ ay: 0.5
230
+ }
231
+ },
232
+ "card-spades-06": {
233
+ frame: {
234
+ x: 700,
235
+ y: 0,
236
+ w: 140,
237
+ h: 190
238
+ },
239
+ rotated: false,
240
+ trimmed: false,
241
+ spriteSourceSize: {
242
+ x: 0,
243
+ y: 0,
244
+ w: 140,
245
+ h: 190
246
+ },
247
+ sourceSize: {
248
+ w: 140,
249
+ h: 190
250
+ },
251
+ anchor: {
252
+ ax: 0.5,
253
+ ay: 0.5
254
+ }
255
+ },
256
+ "card-spades-07": {
257
+ frame: {
258
+ x: 840,
259
+ y: 0,
260
+ w: 140,
261
+ h: 190
262
+ },
263
+ rotated: false,
264
+ trimmed: false,
265
+ spriteSourceSize: {
266
+ x: 0,
267
+ y: 0,
268
+ w: 140,
269
+ h: 190
270
+ },
271
+ sourceSize: {
272
+ w: 140,
273
+ h: 190
274
+ },
275
+ anchor: {
276
+ ax: 0.5,
277
+ ay: 0.5
278
+ }
279
+ },
280
+ "card-spades-08": {
281
+ frame: {
282
+ x: 980,
283
+ y: 0,
284
+ w: 140,
285
+ h: 190
286
+ },
287
+ rotated: false,
288
+ trimmed: false,
289
+ spriteSourceSize: {
290
+ x: 0,
291
+ y: 0,
292
+ w: 140,
293
+ h: 190
294
+ },
295
+ sourceSize: {
296
+ w: 140,
297
+ h: 190
298
+ },
299
+ anchor: {
300
+ ax: 0.5,
301
+ ay: 0.5
302
+ }
303
+ },
304
+ "card-spades-09": {
305
+ frame: {
306
+ x: 1120,
307
+ y: 0,
308
+ w: 140,
309
+ h: 190
310
+ },
311
+ rotated: false,
312
+ trimmed: false,
313
+ spriteSourceSize: {
314
+ x: 0,
315
+ y: 0,
316
+ w: 140,
317
+ h: 190
318
+ },
319
+ sourceSize: {
320
+ w: 140,
321
+ h: 190
322
+ },
323
+ anchor: {
324
+ ax: 0.5,
325
+ ay: 0.5
326
+ }
327
+ },
328
+ "card-spades-10": {
329
+ frame: {
330
+ x: 1260,
331
+ y: 0,
332
+ w: 140,
333
+ h: 190
334
+ },
335
+ rotated: false,
336
+ trimmed: false,
337
+ spriteSourceSize: {
338
+ x: 0,
339
+ y: 0,
340
+ w: 140,
341
+ h: 190
342
+ },
343
+ sourceSize: {
344
+ w: 140,
345
+ h: 190
346
+ },
347
+ anchor: {
348
+ ax: 0.5,
349
+ ay: 0.5
350
+ }
351
+ },
352
+ "card-spades-j": {
353
+ frame: {
354
+ x: 1400,
355
+ y: 0,
356
+ w: 140,
357
+ h: 190
358
+ },
359
+ rotated: false,
360
+ trimmed: false,
361
+ spriteSourceSize: {
362
+ x: 0,
363
+ y: 0,
364
+ w: 140,
365
+ h: 190
366
+ },
367
+ sourceSize: {
368
+ w: 140,
369
+ h: 190
370
+ },
371
+ anchor: {
372
+ ax: 0.5,
373
+ ay: 0.5
374
+ }
375
+ },
376
+ "card-spades-q": {
377
+ frame: {
378
+ x: 1540,
379
+ y: 0,
380
+ w: 140,
381
+ h: 190
382
+ },
383
+ rotated: false,
384
+ trimmed: false,
385
+ spriteSourceSize: {
386
+ x: 0,
387
+ y: 0,
388
+ w: 140,
389
+ h: 190
390
+ },
391
+ sourceSize: {
392
+ w: 140,
393
+ h: 190
394
+ },
395
+ anchor: {
396
+ ax: 0.5,
397
+ ay: 0.5
398
+ }
399
+ },
400
+ "card-spades-k": {
401
+ frame: {
402
+ x: 1680,
403
+ y: 0,
404
+ w: 140,
405
+ h: 190
406
+ },
407
+ rotated: false,
408
+ trimmed: false,
409
+ spriteSourceSize: {
410
+ x: 0,
411
+ y: 0,
412
+ w: 140,
413
+ h: 190
414
+ },
415
+ sourceSize: {
416
+ w: 140,
417
+ h: 190
418
+ },
419
+ anchor: {
420
+ ax: 0.5,
421
+ ay: 0.5
422
+ }
423
+ },
424
+ "card-hearts-a": {
425
+ frame: {
426
+ x: 1820,
427
+ y: 0,
428
+ w: 140,
429
+ h: 190
430
+ },
431
+ rotated: false,
432
+ trimmed: false,
433
+ spriteSourceSize: {
434
+ x: 0,
435
+ y: 0,
436
+ w: 140,
437
+ h: 190
438
+ },
439
+ sourceSize: {
440
+ w: 140,
441
+ h: 190
442
+ },
443
+ anchor: {
444
+ ax: 0.5,
445
+ ay: 0.5
446
+ }
447
+ },
448
+ "card-hearts-02": {
449
+ frame: {
450
+ x: 0,
451
+ y: 190,
452
+ w: 140,
453
+ h: 190
454
+ },
455
+ rotated: false,
456
+ trimmed: false,
457
+ spriteSourceSize: {
458
+ x: 0,
459
+ y: 0,
460
+ w: 140,
461
+ h: 190
462
+ },
463
+ sourceSize: {
464
+ w: 140,
465
+ h: 190
466
+ },
467
+ anchor: {
468
+ ax: 0.5,
469
+ ay: 0.5
470
+ }
471
+ },
472
+ "card-hearts-03": {
473
+ frame: {
474
+ x: 140,
475
+ y: 190,
476
+ w: 140,
477
+ h: 190
478
+ },
479
+ rotated: false,
480
+ trimmed: false,
481
+ spriteSourceSize: {
482
+ x: 0,
483
+ y: 0,
484
+ w: 140,
485
+ h: 190
486
+ },
487
+ sourceSize: {
488
+ w: 140,
489
+ h: 190
490
+ },
491
+ anchor: {
492
+ ax: 0.5,
493
+ ay: 0.5
494
+ }
495
+ },
496
+ "card-hearts-04": {
497
+ frame: {
498
+ x: 280,
499
+ y: 190,
500
+ w: 140,
501
+ h: 190
502
+ },
503
+ rotated: false,
504
+ trimmed: false,
505
+ spriteSourceSize: {
506
+ x: 0,
507
+ y: 0,
508
+ w: 140,
509
+ h: 190
510
+ },
511
+ sourceSize: {
512
+ w: 140,
513
+ h: 190
514
+ },
515
+ anchor: {
516
+ ax: 0.5,
517
+ ay: 0.5
518
+ }
519
+ },
520
+ "card-hearts-05": {
521
+ frame: {
522
+ x: 420,
523
+ y: 190,
524
+ w: 140,
525
+ h: 190
526
+ },
527
+ rotated: false,
528
+ trimmed: false,
529
+ spriteSourceSize: {
530
+ x: 0,
531
+ y: 0,
532
+ w: 140,
533
+ h: 190
534
+ },
535
+ sourceSize: {
536
+ w: 140,
537
+ h: 190
538
+ },
539
+ anchor: {
540
+ ax: 0.5,
541
+ ay: 0.5
542
+ }
543
+ },
544
+ "card-hearts-06": {
545
+ frame: {
546
+ x: 560,
547
+ y: 190,
548
+ w: 140,
549
+ h: 190
550
+ },
551
+ rotated: false,
552
+ trimmed: false,
553
+ spriteSourceSize: {
554
+ x: 0,
555
+ y: 0,
556
+ w: 140,
557
+ h: 190
558
+ },
559
+ sourceSize: {
560
+ w: 140,
561
+ h: 190
562
+ },
563
+ anchor: {
564
+ ax: 0.5,
565
+ ay: 0.5
566
+ }
567
+ },
568
+ "card-hearts-07": {
569
+ frame: {
570
+ x: 700,
571
+ y: 190,
572
+ w: 140,
573
+ h: 190
574
+ },
575
+ rotated: false,
576
+ trimmed: false,
577
+ spriteSourceSize: {
578
+ x: 0,
579
+ y: 0,
580
+ w: 140,
581
+ h: 190
582
+ },
583
+ sourceSize: {
584
+ w: 140,
585
+ h: 190
586
+ },
587
+ anchor: {
588
+ ax: 0.5,
589
+ ay: 0.5
590
+ }
591
+ },
592
+ "card-hearts-08": {
593
+ frame: {
594
+ x: 840,
595
+ y: 190,
596
+ w: 140,
597
+ h: 190
598
+ },
599
+ rotated: false,
600
+ trimmed: false,
601
+ spriteSourceSize: {
602
+ x: 0,
603
+ y: 0,
604
+ w: 140,
605
+ h: 190
606
+ },
607
+ sourceSize: {
608
+ w: 140,
609
+ h: 190
610
+ },
611
+ anchor: {
612
+ ax: 0.5,
613
+ ay: 0.5
614
+ }
615
+ },
616
+ "card-hearts-09": {
617
+ frame: {
618
+ x: 980,
619
+ y: 190,
620
+ w: 140,
621
+ h: 190
622
+ },
623
+ rotated: false,
624
+ trimmed: false,
625
+ spriteSourceSize: {
626
+ x: 0,
627
+ y: 0,
628
+ w: 140,
629
+ h: 190
630
+ },
631
+ sourceSize: {
632
+ w: 140,
633
+ h: 190
634
+ },
635
+ anchor: {
636
+ ax: 0.5,
637
+ ay: 0.5
638
+ }
639
+ },
640
+ "card-hearts-10": {
641
+ frame: {
642
+ x: 1120,
643
+ y: 190,
644
+ w: 140,
645
+ h: 190
646
+ },
647
+ rotated: false,
648
+ trimmed: false,
649
+ spriteSourceSize: {
650
+ x: 0,
651
+ y: 0,
652
+ w: 140,
653
+ h: 190
654
+ },
655
+ sourceSize: {
656
+ w: 140,
657
+ h: 190
658
+ },
659
+ anchor: {
660
+ ax: 0.5,
661
+ ay: 0.5
662
+ }
663
+ },
664
+ "card-hearts-j": {
665
+ frame: {
666
+ x: 1260,
667
+ y: 190,
668
+ w: 140,
669
+ h: 190
670
+ },
671
+ rotated: false,
672
+ trimmed: false,
673
+ spriteSourceSize: {
674
+ x: 0,
675
+ y: 0,
676
+ w: 140,
677
+ h: 190
678
+ },
679
+ sourceSize: {
680
+ w: 140,
681
+ h: 190
682
+ },
683
+ anchor: {
684
+ ax: 0.5,
685
+ ay: 0.5
686
+ }
687
+ },
688
+ "card-hearts-q": {
689
+ frame: {
690
+ x: 1400,
691
+ y: 190,
692
+ w: 140,
693
+ h: 190
694
+ },
695
+ rotated: false,
696
+ trimmed: false,
697
+ spriteSourceSize: {
698
+ x: 0,
699
+ y: 0,
700
+ w: 140,
701
+ h: 190
702
+ },
703
+ sourceSize: {
704
+ w: 140,
705
+ h: 190
706
+ },
707
+ anchor: {
708
+ ax: 0.5,
709
+ ay: 0.5
710
+ }
711
+ },
712
+ "card-hearts-k": {
713
+ frame: {
714
+ x: 1540,
715
+ y: 190,
716
+ w: 140,
717
+ h: 190
718
+ },
719
+ rotated: false,
720
+ trimmed: false,
721
+ spriteSourceSize: {
722
+ x: 0,
723
+ y: 0,
724
+ w: 140,
725
+ h: 190
726
+ },
727
+ sourceSize: {
728
+ w: 140,
729
+ h: 190
730
+ },
731
+ anchor: {
732
+ ax: 0.5,
733
+ ay: 0.5
734
+ }
735
+ },
736
+ "card-clubs-a": {
737
+ frame: {
738
+ x: 1680,
739
+ y: 190,
740
+ w: 140,
741
+ h: 190
742
+ },
743
+ rotated: false,
744
+ trimmed: false,
745
+ spriteSourceSize: {
746
+ x: 0,
747
+ y: 0,
748
+ w: 140,
749
+ h: 190
750
+ },
751
+ sourceSize: {
752
+ w: 140,
753
+ h: 190
754
+ },
755
+ anchor: {
756
+ ax: 0.5,
757
+ ay: 0.5
758
+ }
759
+ },
760
+ "card-clubs-02": {
761
+ frame: {
762
+ x: 1820,
763
+ y: 190,
764
+ w: 140,
765
+ h: 190
766
+ },
767
+ rotated: false,
768
+ trimmed: false,
769
+ spriteSourceSize: {
770
+ x: 0,
771
+ y: 0,
772
+ w: 140,
773
+ h: 190
774
+ },
775
+ sourceSize: {
776
+ w: 140,
777
+ h: 190
778
+ },
779
+ anchor: {
780
+ ax: 0.5,
781
+ ay: 0.5
782
+ }
783
+ },
784
+ "card-clubs-03": {
785
+ frame: {
786
+ x: 0,
787
+ y: 380,
788
+ w: 140,
789
+ h: 190
790
+ },
791
+ rotated: false,
792
+ trimmed: false,
793
+ spriteSourceSize: {
794
+ x: 0,
795
+ y: 0,
796
+ w: 140,
797
+ h: 190
798
+ },
799
+ sourceSize: {
800
+ w: 140,
801
+ h: 190
802
+ },
803
+ anchor: {
804
+ ax: 0.5,
805
+ ay: 0.5
806
+ }
807
+ },
808
+ "card-clubs-04": {
809
+ frame: {
810
+ x: 140,
811
+ y: 380,
812
+ w: 140,
813
+ h: 190
814
+ },
815
+ rotated: false,
816
+ trimmed: false,
817
+ spriteSourceSize: {
818
+ x: 0,
819
+ y: 0,
820
+ w: 140,
821
+ h: 190
822
+ },
823
+ sourceSize: {
824
+ w: 140,
825
+ h: 190
826
+ },
827
+ anchor: {
828
+ ax: 0.5,
829
+ ay: 0.5
830
+ }
831
+ },
832
+ "card-clubs-05": {
833
+ frame: {
834
+ x: 280,
835
+ y: 380,
836
+ w: 140,
837
+ h: 190
838
+ },
839
+ rotated: false,
840
+ trimmed: false,
841
+ spriteSourceSize: {
842
+ x: 0,
843
+ y: 0,
844
+ w: 140,
845
+ h: 190
846
+ },
847
+ sourceSize: {
848
+ w: 140,
849
+ h: 190
850
+ },
851
+ anchor: {
852
+ ax: 0.5,
853
+ ay: 0.5
854
+ }
855
+ },
856
+ "card-clubs-06": {
857
+ frame: {
858
+ x: 420,
859
+ y: 380,
860
+ w: 140,
861
+ h: 190
862
+ },
863
+ rotated: false,
864
+ trimmed: false,
865
+ spriteSourceSize: {
866
+ x: 0,
867
+ y: 0,
868
+ w: 140,
869
+ h: 190
870
+ },
871
+ sourceSize: {
872
+ w: 140,
873
+ h: 190
874
+ },
875
+ anchor: {
876
+ ax: 0.5,
877
+ ay: 0.5
878
+ }
879
+ },
880
+ "card-clubs-07": {
881
+ frame: {
882
+ x: 560,
883
+ y: 380,
884
+ w: 140,
885
+ h: 190
886
+ },
887
+ rotated: false,
888
+ trimmed: false,
889
+ spriteSourceSize: {
890
+ x: 0,
891
+ y: 0,
892
+ w: 140,
893
+ h: 190
894
+ },
895
+ sourceSize: {
896
+ w: 140,
897
+ h: 190
898
+ },
899
+ anchor: {
900
+ ax: 0.5,
901
+ ay: 0.5
902
+ }
903
+ },
904
+ "card-clubs-08": {
905
+ frame: {
906
+ x: 700,
907
+ y: 380,
908
+ w: 140,
909
+ h: 190
910
+ },
911
+ rotated: false,
912
+ trimmed: false,
913
+ spriteSourceSize: {
914
+ x: 0,
915
+ y: 0,
916
+ w: 140,
917
+ h: 190
918
+ },
919
+ sourceSize: {
920
+ w: 140,
921
+ h: 190
922
+ },
923
+ anchor: {
924
+ ax: 0.5,
925
+ ay: 0.5
926
+ }
927
+ },
928
+ "card-clubs-09": {
929
+ frame: {
930
+ x: 840,
931
+ y: 380,
932
+ w: 140,
933
+ h: 190
934
+ },
935
+ rotated: false,
936
+ trimmed: false,
937
+ spriteSourceSize: {
938
+ x: 0,
939
+ y: 0,
940
+ w: 140,
941
+ h: 190
942
+ },
943
+ sourceSize: {
944
+ w: 140,
945
+ h: 190
946
+ },
947
+ anchor: {
948
+ ax: 0.5,
949
+ ay: 0.5
950
+ }
951
+ },
952
+ "card-clubs-10": {
953
+ frame: {
954
+ x: 980,
955
+ y: 380,
956
+ w: 140,
957
+ h: 190
958
+ },
959
+ rotated: false,
960
+ trimmed: false,
961
+ spriteSourceSize: {
962
+ x: 0,
963
+ y: 0,
964
+ w: 140,
965
+ h: 190
966
+ },
967
+ sourceSize: {
968
+ w: 140,
969
+ h: 190
970
+ },
971
+ anchor: {
972
+ ax: 0.5,
973
+ ay: 0.5
974
+ }
975
+ },
976
+ "card-clubs-j": {
977
+ frame: {
978
+ x: 1120,
979
+ y: 380,
980
+ w: 140,
981
+ h: 190
982
+ },
983
+ rotated: false,
984
+ trimmed: false,
985
+ spriteSourceSize: {
986
+ x: 0,
987
+ y: 0,
988
+ w: 140,
989
+ h: 190
990
+ },
991
+ sourceSize: {
992
+ w: 140,
993
+ h: 190
994
+ },
995
+ anchor: {
996
+ ax: 0.5,
997
+ ay: 0.5
998
+ }
999
+ },
1000
+ "card-clubs-q": {
1001
+ frame: {
1002
+ x: 1260,
1003
+ y: 380,
1004
+ w: 140,
1005
+ h: 190
1006
+ },
1007
+ rotated: false,
1008
+ trimmed: false,
1009
+ spriteSourceSize: {
1010
+ x: 0,
1011
+ y: 0,
1012
+ w: 140,
1013
+ h: 190
1014
+ },
1015
+ sourceSize: {
1016
+ w: 140,
1017
+ h: 190
1018
+ },
1019
+ anchor: {
1020
+ ax: 0.5,
1021
+ ay: 0.5
1022
+ }
1023
+ },
1024
+ "card-clubs-k": {
1025
+ frame: {
1026
+ x: 1400,
1027
+ y: 380,
1028
+ w: 140,
1029
+ h: 190
1030
+ },
1031
+ rotated: false,
1032
+ trimmed: false,
1033
+ spriteSourceSize: {
1034
+ x: 0,
1035
+ y: 0,
1036
+ w: 140,
1037
+ h: 190
1038
+ },
1039
+ sourceSize: {
1040
+ w: 140,
1041
+ h: 190
1042
+ },
1043
+ anchor: {
1044
+ ax: 0.5,
1045
+ ay: 0.5
1046
+ }
1047
+ },
1048
+ "card-diamonds-a": {
1049
+ frame: {
1050
+ x: 1540,
1051
+ y: 380,
1052
+ w: 140,
1053
+ h: 190
1054
+ },
1055
+ rotated: false,
1056
+ trimmed: false,
1057
+ spriteSourceSize: {
1058
+ x: 0,
1059
+ y: 0,
1060
+ w: 140,
1061
+ h: 190
1062
+ },
1063
+ sourceSize: {
1064
+ w: 140,
1065
+ h: 190
1066
+ },
1067
+ anchor: {
1068
+ ax: 0.5,
1069
+ ay: 0.5
1070
+ }
1071
+ },
1072
+ "card-diamonds-02": {
1073
+ frame: {
1074
+ x: 1680,
1075
+ y: 380,
1076
+ w: 140,
1077
+ h: 190
1078
+ },
1079
+ rotated: false,
1080
+ trimmed: false,
1081
+ spriteSourceSize: {
1082
+ x: 0,
1083
+ y: 0,
1084
+ w: 140,
1085
+ h: 190
1086
+ },
1087
+ sourceSize: {
1088
+ w: 140,
1089
+ h: 190
1090
+ },
1091
+ anchor: {
1092
+ ax: 0.5,
1093
+ ay: 0.5
1094
+ }
1095
+ },
1096
+ "card-diamonds-03": {
1097
+ frame: {
1098
+ x: 1820,
1099
+ y: 380,
1100
+ w: 140,
1101
+ h: 190
1102
+ },
1103
+ rotated: false,
1104
+ trimmed: false,
1105
+ spriteSourceSize: {
1106
+ x: 0,
1107
+ y: 0,
1108
+ w: 140,
1109
+ h: 190
1110
+ },
1111
+ sourceSize: {
1112
+ w: 140,
1113
+ h: 190
1114
+ },
1115
+ anchor: {
1116
+ ax: 0.5,
1117
+ ay: 0.5
1118
+ }
1119
+ },
1120
+ "card-diamonds-04": {
1121
+ frame: {
1122
+ x: 0,
1123
+ y: 570,
1124
+ w: 140,
1125
+ h: 190
1126
+ },
1127
+ rotated: false,
1128
+ trimmed: false,
1129
+ spriteSourceSize: {
1130
+ x: 0,
1131
+ y: 0,
1132
+ w: 140,
1133
+ h: 190
1134
+ },
1135
+ sourceSize: {
1136
+ w: 140,
1137
+ h: 190
1138
+ },
1139
+ anchor: {
1140
+ ax: 0.5,
1141
+ ay: 0.5
1142
+ }
1143
+ },
1144
+ "card-diamonds-05": {
1145
+ frame: {
1146
+ x: 140,
1147
+ y: 570,
1148
+ w: 140,
1149
+ h: 190
1150
+ },
1151
+ rotated: false,
1152
+ trimmed: false,
1153
+ spriteSourceSize: {
1154
+ x: 0,
1155
+ y: 0,
1156
+ w: 140,
1157
+ h: 190
1158
+ },
1159
+ sourceSize: {
1160
+ w: 140,
1161
+ h: 190
1162
+ },
1163
+ anchor: {
1164
+ ax: 0.5,
1165
+ ay: 0.5
1166
+ }
1167
+ },
1168
+ "card-diamonds-06": {
1169
+ frame: {
1170
+ x: 280,
1171
+ y: 570,
1172
+ w: 140,
1173
+ h: 190
1174
+ },
1175
+ rotated: false,
1176
+ trimmed: false,
1177
+ spriteSourceSize: {
1178
+ x: 0,
1179
+ y: 0,
1180
+ w: 140,
1181
+ h: 190
1182
+ },
1183
+ sourceSize: {
1184
+ w: 140,
1185
+ h: 190
1186
+ },
1187
+ anchor: {
1188
+ ax: 0.5,
1189
+ ay: 0.5
1190
+ }
1191
+ },
1192
+ "card-diamonds-07": {
1193
+ frame: {
1194
+ x: 420,
1195
+ y: 570,
1196
+ w: 140,
1197
+ h: 190
1198
+ },
1199
+ rotated: false,
1200
+ trimmed: false,
1201
+ spriteSourceSize: {
1202
+ x: 0,
1203
+ y: 0,
1204
+ w: 140,
1205
+ h: 190
1206
+ },
1207
+ sourceSize: {
1208
+ w: 140,
1209
+ h: 190
1210
+ },
1211
+ anchor: {
1212
+ ax: 0.5,
1213
+ ay: 0.5
1214
+ }
1215
+ },
1216
+ "card-diamonds-08": {
1217
+ frame: {
1218
+ x: 560,
1219
+ y: 570,
1220
+ w: 140,
1221
+ h: 190
1222
+ },
1223
+ rotated: false,
1224
+ trimmed: false,
1225
+ spriteSourceSize: {
1226
+ x: 0,
1227
+ y: 0,
1228
+ w: 140,
1229
+ h: 190
1230
+ },
1231
+ sourceSize: {
1232
+ w: 140,
1233
+ h: 190
1234
+ },
1235
+ anchor: {
1236
+ ax: 0.5,
1237
+ ay: 0.5
1238
+ }
1239
+ },
1240
+ "card-diamonds-09": {
1241
+ frame: {
1242
+ x: 700,
1243
+ y: 570,
1244
+ w: 140,
1245
+ h: 190
1246
+ },
1247
+ rotated: false,
1248
+ trimmed: false,
1249
+ spriteSourceSize: {
1250
+ x: 0,
1251
+ y: 0,
1252
+ w: 140,
1253
+ h: 190
1254
+ },
1255
+ sourceSize: {
1256
+ w: 140,
1257
+ h: 190
1258
+ },
1259
+ anchor: {
1260
+ ax: 0.5,
1261
+ ay: 0.5
1262
+ }
1263
+ },
1264
+ "card-diamonds-10": {
1265
+ frame: {
1266
+ x: 840,
1267
+ y: 570,
1268
+ w: 140,
1269
+ h: 190
1270
+ },
1271
+ rotated: false,
1272
+ trimmed: false,
1273
+ spriteSourceSize: {
1274
+ x: 0,
1275
+ y: 0,
1276
+ w: 140,
1277
+ h: 190
1278
+ },
1279
+ sourceSize: {
1280
+ w: 140,
1281
+ h: 190
1282
+ },
1283
+ anchor: {
1284
+ ax: 0.5,
1285
+ ay: 0.5
1286
+ }
1287
+ },
1288
+ "card-diamonds-j": {
1289
+ frame: {
1290
+ x: 980,
1291
+ y: 570,
1292
+ w: 140,
1293
+ h: 190
1294
+ },
1295
+ rotated: false,
1296
+ trimmed: false,
1297
+ spriteSourceSize: {
1298
+ x: 0,
1299
+ y: 0,
1300
+ w: 140,
1301
+ h: 190
1302
+ },
1303
+ sourceSize: {
1304
+ w: 140,
1305
+ h: 190
1306
+ },
1307
+ anchor: {
1308
+ ax: 0.5,
1309
+ ay: 0.5
1310
+ }
1311
+ },
1312
+ "card-diamonds-q": {
1313
+ frame: {
1314
+ x: 1120,
1315
+ y: 570,
1316
+ w: 140,
1317
+ h: 190
1318
+ },
1319
+ rotated: false,
1320
+ trimmed: false,
1321
+ spriteSourceSize: {
1322
+ x: 0,
1323
+ y: 0,
1324
+ w: 140,
1325
+ h: 190
1326
+ },
1327
+ sourceSize: {
1328
+ w: 140,
1329
+ h: 190
1330
+ },
1331
+ anchor: {
1332
+ ax: 0.5,
1333
+ ay: 0.5
1334
+ }
1335
+ },
1336
+ "card-diamonds-k": {
1337
+ frame: {
1338
+ x: 1260,
1339
+ y: 570,
1340
+ w: 140,
1341
+ h: 190
1342
+ },
1343
+ rotated: false,
1344
+ trimmed: false,
1345
+ spriteSourceSize: {
1346
+ x: 0,
1347
+ y: 0,
1348
+ w: 140,
1349
+ h: 190
1350
+ },
1351
+ sourceSize: {
1352
+ w: 140,
1353
+ h: 190
1354
+ },
1355
+ anchor: {
1356
+ ax: 0.5,
1357
+ ay: 0.5
1358
+ }
1359
+ },
1360
+ "cardback-blue": {
1361
+ frame: {
1362
+ x: 1400,
1363
+ y: 570,
1364
+ w: 140,
1365
+ h: 190
1366
+ },
1367
+ rotated: false,
1368
+ trimmed: false,
1369
+ spriteSourceSize: {
1370
+ x: 0,
1371
+ y: 0,
1372
+ w: 140,
1373
+ h: 190
1374
+ },
1375
+ sourceSize: {
1376
+ w: 140,
1377
+ h: 190
1378
+ },
1379
+ anchor: {
1380
+ ax: 0.5,
1381
+ ay: 0.5
1382
+ }
1383
+ },
1384
+ "cardback-red": {
1385
+ frame: {
1386
+ x: 1540,
1387
+ y: 570,
1388
+ w: 140,
1389
+ h: 190
1390
+ },
1391
+ rotated: false,
1392
+ trimmed: false,
1393
+ spriteSourceSize: {
1394
+ x: 0,
1395
+ y: 0,
1396
+ w: 140,
1397
+ h: 190
1398
+ },
1399
+ sourceSize: {
1400
+ w: 140,
1401
+ h: 190
1402
+ },
1403
+ anchor: {
1404
+ ax: 0.5,
1405
+ ay: 0.5
1406
+ }
1407
+ },
1408
+ "cardback-green": {
1409
+ frame: {
1410
+ x: 1680,
1411
+ y: 570,
1412
+ w: 140,
1413
+ h: 190
1414
+ },
1415
+ rotated: false,
1416
+ trimmed: false,
1417
+ spriteSourceSize: {
1418
+ x: 0,
1419
+ y: 0,
1420
+ w: 140,
1421
+ h: 190
1422
+ },
1423
+ sourceSize: {
1424
+ w: 140,
1425
+ h: 190
1426
+ },
1427
+ anchor: {
1428
+ ax: 0.5,
1429
+ ay: 0.5
1430
+ }
1431
+ },
1432
+ "cardback-yellow": {
1433
+ frame: {
1434
+ x: 1820,
1435
+ y: 570,
1436
+ w: 140,
1437
+ h: 190
1438
+ },
1439
+ rotated: false,
1440
+ trimmed: false,
1441
+ spriteSourceSize: {
1442
+ x: 0,
1443
+ y: 0,
1444
+ w: 140,
1445
+ h: 190
1446
+ },
1447
+ sourceSize: {
1448
+ w: 140,
1449
+ h: 190
1450
+ },
1451
+ anchor: {
1452
+ ax: 0.5,
1453
+ ay: 0.5
1454
+ }
1455
+ },
1456
+ "cardback-cyan": {
1457
+ frame: {
1458
+ x: 0,
1459
+ y: 760,
1460
+ w: 140,
1461
+ h: 190
1462
+ },
1463
+ rotated: false,
1464
+ trimmed: false,
1465
+ spriteSourceSize: {
1466
+ x: 0,
1467
+ y: 0,
1468
+ w: 140,
1469
+ h: 190
1470
+ },
1471
+ sourceSize: {
1472
+ w: 140,
1473
+ h: 190
1474
+ },
1475
+ anchor: {
1476
+ ax: 0.5,
1477
+ ay: 0.5
1478
+ }
1479
+ },
1480
+ "cardback-default": {
1481
+ frame: {
1482
+ x: 140,
1483
+ y: 760,
1484
+ w: 140,
1485
+ h: 190
1486
+ },
1487
+ rotated: false,
1488
+ trimmed: false,
1489
+ spriteSourceSize: {
1490
+ x: 0,
1491
+ y: 0,
1492
+ w: 140,
1493
+ h: 190
1494
+ },
1495
+ sourceSize: {
1496
+ w: 140,
1497
+ h: 190
1498
+ },
1499
+ anchor: {
1500
+ ax: 0.5,
1501
+ ay: 0.5
1502
+ }
1503
+ }
1504
+ }
1505
+ };
1506
+
1507
+ // src/manifests/isometric-tiles.atlas.json
1508
+ var isometric_tiles_atlas_default = {
1509
+ meta: {
1510
+ app: "sunshade-atlas-pipeline",
1511
+ version: "1.0.0",
1512
+ image: "https://cdn.sunshade.icu/assets/kenney/isometric-miniature-dungeon/isometric-tiles-atlas.png",
1513
+ format: "RGBA8888",
1514
+ size: {
1515
+ w: 2048,
1516
+ h: 384
1517
+ },
1518
+ scale: "1",
1519
+ pack: "isometric-tiles"
1520
+ },
1521
+ frames: {
1522
+ "tile-isometric-grass": {
1523
+ frame: {
1524
+ x: 0,
1525
+ y: 0,
1526
+ w: 256,
1527
+ h: 128
1528
+ },
1529
+ rotated: false,
1530
+ trimmed: false,
1531
+ spriteSourceSize: {
1532
+ x: 0,
1533
+ y: 0,
1534
+ w: 256,
1535
+ h: 128
1536
+ },
1537
+ sourceSize: {
1538
+ w: 256,
1539
+ h: 128
1540
+ },
1541
+ anchor: {
1542
+ ax: 0.5,
1543
+ ay: 0.75
1544
+ }
1545
+ },
1546
+ "tile-isometric-dirt": {
1547
+ frame: {
1548
+ x: 256,
1549
+ y: 0,
1550
+ w: 256,
1551
+ h: 128
1552
+ },
1553
+ rotated: false,
1554
+ trimmed: false,
1555
+ spriteSourceSize: {
1556
+ x: 0,
1557
+ y: 0,
1558
+ w: 256,
1559
+ h: 128
1560
+ },
1561
+ sourceSize: {
1562
+ w: 256,
1563
+ h: 128
1564
+ },
1565
+ anchor: {
1566
+ ax: 0.5,
1567
+ ay: 0.75
1568
+ }
1569
+ },
1570
+ "tile-isometric-stone": {
1571
+ frame: {
1572
+ x: 512,
1573
+ y: 0,
1574
+ w: 256,
1575
+ h: 128
1576
+ },
1577
+ rotated: false,
1578
+ trimmed: false,
1579
+ spriteSourceSize: {
1580
+ x: 0,
1581
+ y: 0,
1582
+ w: 256,
1583
+ h: 128
1584
+ },
1585
+ sourceSize: {
1586
+ w: 256,
1587
+ h: 128
1588
+ },
1589
+ anchor: {
1590
+ ax: 0.5,
1591
+ ay: 0.75
1592
+ }
1593
+ },
1594
+ "tile-isometric-water": {
1595
+ frame: {
1596
+ x: 768,
1597
+ y: 0,
1598
+ w: 256,
1599
+ h: 128
1600
+ },
1601
+ rotated: false,
1602
+ trimmed: false,
1603
+ spriteSourceSize: {
1604
+ x: 0,
1605
+ y: 0,
1606
+ w: 256,
1607
+ h: 128
1608
+ },
1609
+ sourceSize: {
1610
+ w: 256,
1611
+ h: 128
1612
+ },
1613
+ anchor: {
1614
+ ax: 0.5,
1615
+ ay: 0.75
1616
+ }
1617
+ },
1618
+ "tile-isometric-sand": {
1619
+ frame: {
1620
+ x: 1024,
1621
+ y: 0,
1622
+ w: 256,
1623
+ h: 128
1624
+ },
1625
+ rotated: false,
1626
+ trimmed: false,
1627
+ spriteSourceSize: {
1628
+ x: 0,
1629
+ y: 0,
1630
+ w: 256,
1631
+ h: 128
1632
+ },
1633
+ sourceSize: {
1634
+ w: 256,
1635
+ h: 128
1636
+ },
1637
+ anchor: {
1638
+ ax: 0.5,
1639
+ ay: 0.75
1640
+ }
1641
+ },
1642
+ "tile-isometric-wood-floor": {
1643
+ frame: {
1644
+ x: 1280,
1645
+ y: 0,
1646
+ w: 256,
1647
+ h: 128
1648
+ },
1649
+ rotated: false,
1650
+ trimmed: false,
1651
+ spriteSourceSize: {
1652
+ x: 0,
1653
+ y: 0,
1654
+ w: 256,
1655
+ h: 128
1656
+ },
1657
+ sourceSize: {
1658
+ w: 256,
1659
+ h: 128
1660
+ },
1661
+ anchor: {
1662
+ ax: 0.5,
1663
+ ay: 0.75
1664
+ }
1665
+ },
1666
+ "tile-isometric-dungeon-floor": {
1667
+ frame: {
1668
+ x: 1536,
1669
+ y: 0,
1670
+ w: 256,
1671
+ h: 128
1672
+ },
1673
+ rotated: false,
1674
+ trimmed: false,
1675
+ spriteSourceSize: {
1676
+ x: 0,
1677
+ y: 0,
1678
+ w: 256,
1679
+ h: 128
1680
+ },
1681
+ sourceSize: {
1682
+ w: 256,
1683
+ h: 128
1684
+ },
1685
+ anchor: {
1686
+ ax: 0.5,
1687
+ ay: 0.75
1688
+ }
1689
+ },
1690
+ "tile-isometric-wall-stone": {
1691
+ frame: {
1692
+ x: 1792,
1693
+ y: 0,
1694
+ w: 256,
1695
+ h: 128
1696
+ },
1697
+ rotated: false,
1698
+ trimmed: false,
1699
+ spriteSourceSize: {
1700
+ x: 0,
1701
+ y: 0,
1702
+ w: 256,
1703
+ h: 128
1704
+ },
1705
+ sourceSize: {
1706
+ w: 256,
1707
+ h: 128
1708
+ },
1709
+ anchor: {
1710
+ ax: 0.5,
1711
+ ay: 0.75
1712
+ }
1713
+ },
1714
+ "tile-isometric-wall-wood": {
1715
+ frame: {
1716
+ x: 0,
1717
+ y: 128,
1718
+ w: 256,
1719
+ h: 128
1720
+ },
1721
+ rotated: false,
1722
+ trimmed: false,
1723
+ spriteSourceSize: {
1724
+ x: 0,
1725
+ y: 0,
1726
+ w: 256,
1727
+ h: 128
1728
+ },
1729
+ sourceSize: {
1730
+ w: 256,
1731
+ h: 128
1732
+ },
1733
+ anchor: {
1734
+ ax: 0.5,
1735
+ ay: 0.75
1736
+ }
1737
+ },
1738
+ "tile-isometric-wall-corner": {
1739
+ frame: {
1740
+ x: 256,
1741
+ y: 128,
1742
+ w: 256,
1743
+ h: 128
1744
+ },
1745
+ rotated: false,
1746
+ trimmed: false,
1747
+ spriteSourceSize: {
1748
+ x: 0,
1749
+ y: 0,
1750
+ w: 256,
1751
+ h: 128
1752
+ },
1753
+ sourceSize: {
1754
+ w: 256,
1755
+ h: 128
1756
+ },
1757
+ anchor: {
1758
+ ax: 0.5,
1759
+ ay: 0.75
1760
+ }
1761
+ },
1762
+ "tile-isometric-stairs-stone": {
1763
+ frame: {
1764
+ x: 512,
1765
+ y: 128,
1766
+ w: 256,
1767
+ h: 128
1768
+ },
1769
+ rotated: false,
1770
+ trimmed: false,
1771
+ spriteSourceSize: {
1772
+ x: 0,
1773
+ y: 0,
1774
+ w: 256,
1775
+ h: 128
1776
+ },
1777
+ sourceSize: {
1778
+ w: 256,
1779
+ h: 128
1780
+ },
1781
+ anchor: {
1782
+ ax: 0.5,
1783
+ ay: 0.75
1784
+ }
1785
+ },
1786
+ "tile-isometric-stairs-wood": {
1787
+ frame: {
1788
+ x: 768,
1789
+ y: 128,
1790
+ w: 256,
1791
+ h: 128
1792
+ },
1793
+ rotated: false,
1794
+ trimmed: false,
1795
+ spriteSourceSize: {
1796
+ x: 0,
1797
+ y: 0,
1798
+ w: 256,
1799
+ h: 128
1800
+ },
1801
+ sourceSize: {
1802
+ w: 256,
1803
+ h: 128
1804
+ },
1805
+ anchor: {
1806
+ ax: 0.5,
1807
+ ay: 0.75
1808
+ }
1809
+ },
1810
+ "tile-isometric-door-closed": {
1811
+ frame: {
1812
+ x: 1024,
1813
+ y: 128,
1814
+ w: 256,
1815
+ h: 128
1816
+ },
1817
+ rotated: false,
1818
+ trimmed: false,
1819
+ spriteSourceSize: {
1820
+ x: 0,
1821
+ y: 0,
1822
+ w: 256,
1823
+ h: 128
1824
+ },
1825
+ sourceSize: {
1826
+ w: 256,
1827
+ h: 128
1828
+ },
1829
+ anchor: {
1830
+ ax: 0.5,
1831
+ ay: 0.75
1832
+ }
1833
+ },
1834
+ "tile-isometric-door-open": {
1835
+ frame: {
1836
+ x: 1280,
1837
+ y: 128,
1838
+ w: 256,
1839
+ h: 128
1840
+ },
1841
+ rotated: false,
1842
+ trimmed: false,
1843
+ spriteSourceSize: {
1844
+ x: 0,
1845
+ y: 0,
1846
+ w: 256,
1847
+ h: 128
1848
+ },
1849
+ sourceSize: {
1850
+ w: 256,
1851
+ h: 128
1852
+ },
1853
+ anchor: {
1854
+ ax: 0.5,
1855
+ ay: 0.75
1856
+ }
1857
+ },
1858
+ "tile-isometric-chest-closed": {
1859
+ frame: {
1860
+ x: 1536,
1861
+ y: 128,
1862
+ w: 256,
1863
+ h: 128
1864
+ },
1865
+ rotated: false,
1866
+ trimmed: false,
1867
+ spriteSourceSize: {
1868
+ x: 0,
1869
+ y: 0,
1870
+ w: 256,
1871
+ h: 128
1872
+ },
1873
+ sourceSize: {
1874
+ w: 256,
1875
+ h: 128
1876
+ },
1877
+ anchor: {
1878
+ ax: 0.5,
1879
+ ay: 0.75
1880
+ }
1881
+ },
1882
+ "tile-isometric-chest-open": {
1883
+ frame: {
1884
+ x: 1792,
1885
+ y: 128,
1886
+ w: 256,
1887
+ h: 128
1888
+ },
1889
+ rotated: false,
1890
+ trimmed: false,
1891
+ spriteSourceSize: {
1892
+ x: 0,
1893
+ y: 0,
1894
+ w: 256,
1895
+ h: 128
1896
+ },
1897
+ sourceSize: {
1898
+ w: 256,
1899
+ h: 128
1900
+ },
1901
+ anchor: {
1902
+ ax: 0.5,
1903
+ ay: 0.75
1904
+ }
1905
+ },
1906
+ "tile-isometric-barrel": {
1907
+ frame: {
1908
+ x: 0,
1909
+ y: 256,
1910
+ w: 256,
1911
+ h: 128
1912
+ },
1913
+ rotated: false,
1914
+ trimmed: false,
1915
+ spriteSourceSize: {
1916
+ x: 0,
1917
+ y: 0,
1918
+ w: 256,
1919
+ h: 128
1920
+ },
1921
+ sourceSize: {
1922
+ w: 256,
1923
+ h: 128
1924
+ },
1925
+ anchor: {
1926
+ ax: 0.5,
1927
+ ay: 0.75
1928
+ }
1929
+ },
1930
+ "tile-isometric-crate": {
1931
+ frame: {
1932
+ x: 256,
1933
+ y: 256,
1934
+ w: 256,
1935
+ h: 128
1936
+ },
1937
+ rotated: false,
1938
+ trimmed: false,
1939
+ spriteSourceSize: {
1940
+ x: 0,
1941
+ y: 0,
1942
+ w: 256,
1943
+ h: 128
1944
+ },
1945
+ sourceSize: {
1946
+ w: 256,
1947
+ h: 128
1948
+ },
1949
+ anchor: {
1950
+ ax: 0.5,
1951
+ ay: 0.75
1952
+ }
1953
+ },
1954
+ "tile-isometric-bookshelf": {
1955
+ frame: {
1956
+ x: 512,
1957
+ y: 256,
1958
+ w: 256,
1959
+ h: 128
1960
+ },
1961
+ rotated: false,
1962
+ trimmed: false,
1963
+ spriteSourceSize: {
1964
+ x: 0,
1965
+ y: 0,
1966
+ w: 256,
1967
+ h: 128
1968
+ },
1969
+ sourceSize: {
1970
+ w: 256,
1971
+ h: 128
1972
+ },
1973
+ anchor: {
1974
+ ax: 0.5,
1975
+ ay: 0.75
1976
+ }
1977
+ },
1978
+ "tile-isometric-table": {
1979
+ frame: {
1980
+ x: 768,
1981
+ y: 256,
1982
+ w: 256,
1983
+ h: 128
1984
+ },
1985
+ rotated: false,
1986
+ trimmed: false,
1987
+ spriteSourceSize: {
1988
+ x: 0,
1989
+ y: 0,
1990
+ w: 256,
1991
+ h: 128
1992
+ },
1993
+ sourceSize: {
1994
+ w: 256,
1995
+ h: 128
1996
+ },
1997
+ anchor: {
1998
+ ax: 0.5,
1999
+ ay: 0.75
2000
+ }
2001
+ },
2002
+ "tile-isometric-chair": {
2003
+ frame: {
2004
+ x: 1024,
2005
+ y: 256,
2006
+ w: 256,
2007
+ h: 128
2008
+ },
2009
+ rotated: false,
2010
+ trimmed: false,
2011
+ spriteSourceSize: {
2012
+ x: 0,
2013
+ y: 0,
2014
+ w: 256,
2015
+ h: 128
2016
+ },
2017
+ sourceSize: {
2018
+ w: 256,
2019
+ h: 128
2020
+ },
2021
+ anchor: {
2022
+ ax: 0.5,
2023
+ ay: 0.75
2024
+ }
2025
+ },
2026
+ "tile-isometric-pillar": {
2027
+ frame: {
2028
+ x: 1280,
2029
+ y: 256,
2030
+ w: 256,
2031
+ h: 128
2032
+ },
2033
+ rotated: false,
2034
+ trimmed: false,
2035
+ spriteSourceSize: {
2036
+ x: 0,
2037
+ y: 0,
2038
+ w: 256,
2039
+ h: 128
2040
+ },
2041
+ sourceSize: {
2042
+ w: 256,
2043
+ h: 128
2044
+ },
2045
+ anchor: {
2046
+ ax: 0.5,
2047
+ ay: 0.75
2048
+ }
2049
+ },
2050
+ "tile-isometric-torch": {
2051
+ frame: {
2052
+ x: 1536,
2053
+ y: 256,
2054
+ w: 256,
2055
+ h: 128
2056
+ },
2057
+ rotated: false,
2058
+ trimmed: false,
2059
+ spriteSourceSize: {
2060
+ x: 0,
2061
+ y: 0,
2062
+ w: 256,
2063
+ h: 128
2064
+ },
2065
+ sourceSize: {
2066
+ w: 256,
2067
+ h: 128
2068
+ },
2069
+ anchor: {
2070
+ ax: 0.5,
2071
+ ay: 0.75
2072
+ }
2073
+ },
2074
+ "tile-isometric-rug": {
2075
+ frame: {
2076
+ x: 1792,
2077
+ y: 256,
2078
+ w: 256,
2079
+ h: 128
2080
+ },
2081
+ rotated: false,
2082
+ trimmed: false,
2083
+ spriteSourceSize: {
2084
+ x: 0,
2085
+ y: 0,
2086
+ w: 256,
2087
+ h: 128
2088
+ },
2089
+ sourceSize: {
2090
+ w: 256,
2091
+ h: 128
2092
+ },
2093
+ anchor: {
2094
+ ax: 0.5,
2095
+ ay: 0.75
2096
+ }
2097
+ }
2098
+ }
2099
+ };
2100
+
2101
+ // src/manifests/modular-characters.atlas.json
2102
+ var modular_characters_atlas_default = {
2103
+ meta: {
2104
+ app: "sunshade-atlas-pipeline",
2105
+ version: "1.0.0",
2106
+ image: "https://cdn.sunshade.icu/assets/kenney/modular-characters/modular-characters-atlas.png",
2107
+ format: "RGBA8888",
2108
+ size: {
2109
+ w: 2048,
2110
+ h: 384
2111
+ },
2112
+ scale: "1",
2113
+ pack: "modular-characters"
2114
+ },
2115
+ frames: {
2116
+ "char-face-face-0": {
2117
+ frame: {
2118
+ x: 0,
2119
+ y: 0,
2120
+ w: 128,
2121
+ h: 128
2122
+ },
2123
+ rotated: false,
2124
+ trimmed: false,
2125
+ spriteSourceSize: {
2126
+ x: 0,
2127
+ y: 0,
2128
+ w: 128,
2129
+ h: 128
2130
+ },
2131
+ sourceSize: {
2132
+ w: 128,
2133
+ h: 128
2134
+ },
2135
+ anchor: {
2136
+ ax: 0.5,
2137
+ ay: 0.5
2138
+ }
2139
+ },
2140
+ "char-face-face-1": {
2141
+ frame: {
2142
+ x: 128,
2143
+ y: 0,
2144
+ w: 128,
2145
+ h: 128
2146
+ },
2147
+ rotated: false,
2148
+ trimmed: false,
2149
+ spriteSourceSize: {
2150
+ x: 0,
2151
+ y: 0,
2152
+ w: 128,
2153
+ h: 128
2154
+ },
2155
+ sourceSize: {
2156
+ w: 128,
2157
+ h: 128
2158
+ },
2159
+ anchor: {
2160
+ ax: 0.5,
2161
+ ay: 0.5
2162
+ }
2163
+ },
2164
+ "char-face-face-2": {
2165
+ frame: {
2166
+ x: 256,
2167
+ y: 0,
2168
+ w: 128,
2169
+ h: 128
2170
+ },
2171
+ rotated: false,
2172
+ trimmed: false,
2173
+ spriteSourceSize: {
2174
+ x: 0,
2175
+ y: 0,
2176
+ w: 128,
2177
+ h: 128
2178
+ },
2179
+ sourceSize: {
2180
+ w: 128,
2181
+ h: 128
2182
+ },
2183
+ anchor: {
2184
+ ax: 0.5,
2185
+ ay: 0.5
2186
+ }
2187
+ },
2188
+ "char-face-face-3": {
2189
+ frame: {
2190
+ x: 384,
2191
+ y: 0,
2192
+ w: 128,
2193
+ h: 128
2194
+ },
2195
+ rotated: false,
2196
+ trimmed: false,
2197
+ spriteSourceSize: {
2198
+ x: 0,
2199
+ y: 0,
2200
+ w: 128,
2201
+ h: 128
2202
+ },
2203
+ sourceSize: {
2204
+ w: 128,
2205
+ h: 128
2206
+ },
2207
+ anchor: {
2208
+ ax: 0.5,
2209
+ ay: 0.5
2210
+ }
2211
+ },
2212
+ "char-face-face-4": {
2213
+ frame: {
2214
+ x: 512,
2215
+ y: 0,
2216
+ w: 128,
2217
+ h: 128
2218
+ },
2219
+ rotated: false,
2220
+ trimmed: false,
2221
+ spriteSourceSize: {
2222
+ x: 0,
2223
+ y: 0,
2224
+ w: 128,
2225
+ h: 128
2226
+ },
2227
+ sourceSize: {
2228
+ w: 128,
2229
+ h: 128
2230
+ },
2231
+ anchor: {
2232
+ ax: 0.5,
2233
+ ay: 0.5
2234
+ }
2235
+ },
2236
+ "char-face-face-5": {
2237
+ frame: {
2238
+ x: 640,
2239
+ y: 0,
2240
+ w: 128,
2241
+ h: 128
2242
+ },
2243
+ rotated: false,
2244
+ trimmed: false,
2245
+ spriteSourceSize: {
2246
+ x: 0,
2247
+ y: 0,
2248
+ w: 128,
2249
+ h: 128
2250
+ },
2251
+ sourceSize: {
2252
+ w: 128,
2253
+ h: 128
2254
+ },
2255
+ anchor: {
2256
+ ax: 0.5,
2257
+ ay: 0.5
2258
+ }
2259
+ },
2260
+ "char-face-face-6": {
2261
+ frame: {
2262
+ x: 768,
2263
+ y: 0,
2264
+ w: 128,
2265
+ h: 128
2266
+ },
2267
+ rotated: false,
2268
+ trimmed: false,
2269
+ spriteSourceSize: {
2270
+ x: 0,
2271
+ y: 0,
2272
+ w: 128,
2273
+ h: 128
2274
+ },
2275
+ sourceSize: {
2276
+ w: 128,
2277
+ h: 128
2278
+ },
2279
+ anchor: {
2280
+ ax: 0.5,
2281
+ ay: 0.5
2282
+ }
2283
+ },
2284
+ "char-face-face-7": {
2285
+ frame: {
2286
+ x: 896,
2287
+ y: 0,
2288
+ w: 128,
2289
+ h: 128
2290
+ },
2291
+ rotated: false,
2292
+ trimmed: false,
2293
+ spriteSourceSize: {
2294
+ x: 0,
2295
+ y: 0,
2296
+ w: 128,
2297
+ h: 128
2298
+ },
2299
+ sourceSize: {
2300
+ w: 128,
2301
+ h: 128
2302
+ },
2303
+ anchor: {
2304
+ ax: 0.5,
2305
+ ay: 0.5
2306
+ }
2307
+ },
2308
+ "char-hair-hair-blonde-0": {
2309
+ frame: {
2310
+ x: 1024,
2311
+ y: 0,
2312
+ w: 128,
2313
+ h: 128
2314
+ },
2315
+ rotated: false,
2316
+ trimmed: false,
2317
+ spriteSourceSize: {
2318
+ x: 0,
2319
+ y: 0,
2320
+ w: 128,
2321
+ h: 128
2322
+ },
2323
+ sourceSize: {
2324
+ w: 128,
2325
+ h: 128
2326
+ },
2327
+ anchor: {
2328
+ ax: 0.5,
2329
+ ay: 0.5
2330
+ }
2331
+ },
2332
+ "char-hair-hair-blonde-1": {
2333
+ frame: {
2334
+ x: 1152,
2335
+ y: 0,
2336
+ w: 128,
2337
+ h: 128
2338
+ },
2339
+ rotated: false,
2340
+ trimmed: false,
2341
+ spriteSourceSize: {
2342
+ x: 0,
2343
+ y: 0,
2344
+ w: 128,
2345
+ h: 128
2346
+ },
2347
+ sourceSize: {
2348
+ w: 128,
2349
+ h: 128
2350
+ },
2351
+ anchor: {
2352
+ ax: 0.5,
2353
+ ay: 0.5
2354
+ }
2355
+ },
2356
+ "char-hair-hair-brown-0": {
2357
+ frame: {
2358
+ x: 1280,
2359
+ y: 0,
2360
+ w: 128,
2361
+ h: 128
2362
+ },
2363
+ rotated: false,
2364
+ trimmed: false,
2365
+ spriteSourceSize: {
2366
+ x: 0,
2367
+ y: 0,
2368
+ w: 128,
2369
+ h: 128
2370
+ },
2371
+ sourceSize: {
2372
+ w: 128,
2373
+ h: 128
2374
+ },
2375
+ anchor: {
2376
+ ax: 0.5,
2377
+ ay: 0.5
2378
+ }
2379
+ },
2380
+ "char-hair-hair-brown-1": {
2381
+ frame: {
2382
+ x: 1408,
2383
+ y: 0,
2384
+ w: 128,
2385
+ h: 128
2386
+ },
2387
+ rotated: false,
2388
+ trimmed: false,
2389
+ spriteSourceSize: {
2390
+ x: 0,
2391
+ y: 0,
2392
+ w: 128,
2393
+ h: 128
2394
+ },
2395
+ sourceSize: {
2396
+ w: 128,
2397
+ h: 128
2398
+ },
2399
+ anchor: {
2400
+ ax: 0.5,
2401
+ ay: 0.5
2402
+ }
2403
+ },
2404
+ "char-hair-hair-black-0": {
2405
+ frame: {
2406
+ x: 1536,
2407
+ y: 0,
2408
+ w: 128,
2409
+ h: 128
2410
+ },
2411
+ rotated: false,
2412
+ trimmed: false,
2413
+ spriteSourceSize: {
2414
+ x: 0,
2415
+ y: 0,
2416
+ w: 128,
2417
+ h: 128
2418
+ },
2419
+ sourceSize: {
2420
+ w: 128,
2421
+ h: 128
2422
+ },
2423
+ anchor: {
2424
+ ax: 0.5,
2425
+ ay: 0.5
2426
+ }
2427
+ },
2428
+ "char-hair-hair-black-1": {
2429
+ frame: {
2430
+ x: 1664,
2431
+ y: 0,
2432
+ w: 128,
2433
+ h: 128
2434
+ },
2435
+ rotated: false,
2436
+ trimmed: false,
2437
+ spriteSourceSize: {
2438
+ x: 0,
2439
+ y: 0,
2440
+ w: 128,
2441
+ h: 128
2442
+ },
2443
+ sourceSize: {
2444
+ w: 128,
2445
+ h: 128
2446
+ },
2447
+ anchor: {
2448
+ ax: 0.5,
2449
+ ay: 0.5
2450
+ }
2451
+ },
2452
+ "char-hair-hair-red-0": {
2453
+ frame: {
2454
+ x: 1792,
2455
+ y: 0,
2456
+ w: 128,
2457
+ h: 128
2458
+ },
2459
+ rotated: false,
2460
+ trimmed: false,
2461
+ spriteSourceSize: {
2462
+ x: 0,
2463
+ y: 0,
2464
+ w: 128,
2465
+ h: 128
2466
+ },
2467
+ sourceSize: {
2468
+ w: 128,
2469
+ h: 128
2470
+ },
2471
+ anchor: {
2472
+ ax: 0.5,
2473
+ ay: 0.5
2474
+ }
2475
+ },
2476
+ "char-pants-pants-blue-0": {
2477
+ frame: {
2478
+ x: 1920,
2479
+ y: 0,
2480
+ w: 128,
2481
+ h: 128
2482
+ },
2483
+ rotated: false,
2484
+ trimmed: false,
2485
+ spriteSourceSize: {
2486
+ x: 0,
2487
+ y: 0,
2488
+ w: 128,
2489
+ h: 128
2490
+ },
2491
+ sourceSize: {
2492
+ w: 128,
2493
+ h: 128
2494
+ },
2495
+ anchor: {
2496
+ ax: 0.5,
2497
+ ay: 0.5
2498
+ }
2499
+ },
2500
+ "char-pants-pants-blue-1": {
2501
+ frame: {
2502
+ x: 0,
2503
+ y: 128,
2504
+ w: 128,
2505
+ h: 128
2506
+ },
2507
+ rotated: false,
2508
+ trimmed: false,
2509
+ spriteSourceSize: {
2510
+ x: 0,
2511
+ y: 0,
2512
+ w: 128,
2513
+ h: 128
2514
+ },
2515
+ sourceSize: {
2516
+ w: 128,
2517
+ h: 128
2518
+ },
2519
+ anchor: {
2520
+ ax: 0.5,
2521
+ ay: 0.5
2522
+ }
2523
+ },
2524
+ "char-pants-pants-green-0": {
2525
+ frame: {
2526
+ x: 128,
2527
+ y: 128,
2528
+ w: 128,
2529
+ h: 128
2530
+ },
2531
+ rotated: false,
2532
+ trimmed: false,
2533
+ spriteSourceSize: {
2534
+ x: 0,
2535
+ y: 0,
2536
+ w: 128,
2537
+ h: 128
2538
+ },
2539
+ sourceSize: {
2540
+ w: 128,
2541
+ h: 128
2542
+ },
2543
+ anchor: {
2544
+ ax: 0.5,
2545
+ ay: 0.5
2546
+ }
2547
+ },
2548
+ "char-pants-pants-red-0": {
2549
+ frame: {
2550
+ x: 256,
2551
+ y: 128,
2552
+ w: 128,
2553
+ h: 128
2554
+ },
2555
+ rotated: false,
2556
+ trimmed: false,
2557
+ spriteSourceSize: {
2558
+ x: 0,
2559
+ y: 0,
2560
+ w: 128,
2561
+ h: 128
2562
+ },
2563
+ sourceSize: {
2564
+ w: 128,
2565
+ h: 128
2566
+ },
2567
+ anchor: {
2568
+ ax: 0.5,
2569
+ ay: 0.5
2570
+ }
2571
+ },
2572
+ "char-pants-pants-black-0": {
2573
+ frame: {
2574
+ x: 384,
2575
+ y: 128,
2576
+ w: 128,
2577
+ h: 128
2578
+ },
2579
+ rotated: false,
2580
+ trimmed: false,
2581
+ spriteSourceSize: {
2582
+ x: 0,
2583
+ y: 0,
2584
+ w: 128,
2585
+ h: 128
2586
+ },
2587
+ sourceSize: {
2588
+ w: 128,
2589
+ h: 128
2590
+ },
2591
+ anchor: {
2592
+ ax: 0.5,
2593
+ ay: 0.5
2594
+ }
2595
+ },
2596
+ "char-pants-pants-white-0": {
2597
+ frame: {
2598
+ x: 512,
2599
+ y: 128,
2600
+ w: 128,
2601
+ h: 128
2602
+ },
2603
+ rotated: false,
2604
+ trimmed: false,
2605
+ spriteSourceSize: {
2606
+ x: 0,
2607
+ y: 0,
2608
+ w: 128,
2609
+ h: 128
2610
+ },
2611
+ sourceSize: {
2612
+ w: 128,
2613
+ h: 128
2614
+ },
2615
+ anchor: {
2616
+ ax: 0.5,
2617
+ ay: 0.5
2618
+ }
2619
+ },
2620
+ "char-shirts-shirt-blue-0": {
2621
+ frame: {
2622
+ x: 640,
2623
+ y: 128,
2624
+ w: 128,
2625
+ h: 128
2626
+ },
2627
+ rotated: false,
2628
+ trimmed: false,
2629
+ spriteSourceSize: {
2630
+ x: 0,
2631
+ y: 0,
2632
+ w: 128,
2633
+ h: 128
2634
+ },
2635
+ sourceSize: {
2636
+ w: 128,
2637
+ h: 128
2638
+ },
2639
+ anchor: {
2640
+ ax: 0.5,
2641
+ ay: 0.5
2642
+ }
2643
+ },
2644
+ "char-shirts-shirt-blue-1": {
2645
+ frame: {
2646
+ x: 768,
2647
+ y: 128,
2648
+ w: 128,
2649
+ h: 128
2650
+ },
2651
+ rotated: false,
2652
+ trimmed: false,
2653
+ spriteSourceSize: {
2654
+ x: 0,
2655
+ y: 0,
2656
+ w: 128,
2657
+ h: 128
2658
+ },
2659
+ sourceSize: {
2660
+ w: 128,
2661
+ h: 128
2662
+ },
2663
+ anchor: {
2664
+ ax: 0.5,
2665
+ ay: 0.5
2666
+ }
2667
+ },
2668
+ "char-shirts-shirt-green-0": {
2669
+ frame: {
2670
+ x: 896,
2671
+ y: 128,
2672
+ w: 128,
2673
+ h: 128
2674
+ },
2675
+ rotated: false,
2676
+ trimmed: false,
2677
+ spriteSourceSize: {
2678
+ x: 0,
2679
+ y: 0,
2680
+ w: 128,
2681
+ h: 128
2682
+ },
2683
+ sourceSize: {
2684
+ w: 128,
2685
+ h: 128
2686
+ },
2687
+ anchor: {
2688
+ ax: 0.5,
2689
+ ay: 0.5
2690
+ }
2691
+ },
2692
+ "char-shirts-shirt-red-0": {
2693
+ frame: {
2694
+ x: 1024,
2695
+ y: 128,
2696
+ w: 128,
2697
+ h: 128
2698
+ },
2699
+ rotated: false,
2700
+ trimmed: false,
2701
+ spriteSourceSize: {
2702
+ x: 0,
2703
+ y: 0,
2704
+ w: 128,
2705
+ h: 128
2706
+ },
2707
+ sourceSize: {
2708
+ w: 128,
2709
+ h: 128
2710
+ },
2711
+ anchor: {
2712
+ ax: 0.5,
2713
+ ay: 0.5
2714
+ }
2715
+ },
2716
+ "char-shirts-shirt-black-0": {
2717
+ frame: {
2718
+ x: 1152,
2719
+ y: 128,
2720
+ w: 128,
2721
+ h: 128
2722
+ },
2723
+ rotated: false,
2724
+ trimmed: false,
2725
+ spriteSourceSize: {
2726
+ x: 0,
2727
+ y: 0,
2728
+ w: 128,
2729
+ h: 128
2730
+ },
2731
+ sourceSize: {
2732
+ w: 128,
2733
+ h: 128
2734
+ },
2735
+ anchor: {
2736
+ ax: 0.5,
2737
+ ay: 0.5
2738
+ }
2739
+ },
2740
+ "char-shirts-shirt-white-0": {
2741
+ frame: {
2742
+ x: 1280,
2743
+ y: 128,
2744
+ w: 128,
2745
+ h: 128
2746
+ },
2747
+ rotated: false,
2748
+ trimmed: false,
2749
+ spriteSourceSize: {
2750
+ x: 0,
2751
+ y: 0,
2752
+ w: 128,
2753
+ h: 128
2754
+ },
2755
+ sourceSize: {
2756
+ w: 128,
2757
+ h: 128
2758
+ },
2759
+ anchor: {
2760
+ ax: 0.5,
2761
+ ay: 0.5
2762
+ }
2763
+ },
2764
+ "char-shoes-shoes-brown-0": {
2765
+ frame: {
2766
+ x: 1408,
2767
+ y: 128,
2768
+ w: 128,
2769
+ h: 128
2770
+ },
2771
+ rotated: false,
2772
+ trimmed: false,
2773
+ spriteSourceSize: {
2774
+ x: 0,
2775
+ y: 0,
2776
+ w: 128,
2777
+ h: 128
2778
+ },
2779
+ sourceSize: {
2780
+ w: 128,
2781
+ h: 128
2782
+ },
2783
+ anchor: {
2784
+ ax: 0.5,
2785
+ ay: 0.5
2786
+ }
2787
+ },
2788
+ "char-shoes-shoes-black-0": {
2789
+ frame: {
2790
+ x: 1536,
2791
+ y: 128,
2792
+ w: 128,
2793
+ h: 128
2794
+ },
2795
+ rotated: false,
2796
+ trimmed: false,
2797
+ spriteSourceSize: {
2798
+ x: 0,
2799
+ y: 0,
2800
+ w: 128,
2801
+ h: 128
2802
+ },
2803
+ sourceSize: {
2804
+ w: 128,
2805
+ h: 128
2806
+ },
2807
+ anchor: {
2808
+ ax: 0.5,
2809
+ ay: 0.5
2810
+ }
2811
+ },
2812
+ "char-shoes-shoes-white-0": {
2813
+ frame: {
2814
+ x: 1664,
2815
+ y: 128,
2816
+ w: 128,
2817
+ h: 128
2818
+ },
2819
+ rotated: false,
2820
+ trimmed: false,
2821
+ spriteSourceSize: {
2822
+ x: 0,
2823
+ y: 0,
2824
+ w: 128,
2825
+ h: 128
2826
+ },
2827
+ sourceSize: {
2828
+ w: 128,
2829
+ h: 128
2830
+ },
2831
+ anchor: {
2832
+ ax: 0.5,
2833
+ ay: 0.5
2834
+ }
2835
+ },
2836
+ "char-shoes-shoes-red-0": {
2837
+ frame: {
2838
+ x: 1792,
2839
+ y: 128,
2840
+ w: 128,
2841
+ h: 128
2842
+ },
2843
+ rotated: false,
2844
+ trimmed: false,
2845
+ spriteSourceSize: {
2846
+ x: 0,
2847
+ y: 0,
2848
+ w: 128,
2849
+ h: 128
2850
+ },
2851
+ sourceSize: {
2852
+ w: 128,
2853
+ h: 128
2854
+ },
2855
+ anchor: {
2856
+ ax: 0.5,
2857
+ ay: 0.5
2858
+ }
2859
+ },
2860
+ "char-skin-skin-beige-0": {
2861
+ frame: {
2862
+ x: 1920,
2863
+ y: 128,
2864
+ w: 128,
2865
+ h: 128
2866
+ },
2867
+ rotated: false,
2868
+ trimmed: false,
2869
+ spriteSourceSize: {
2870
+ x: 0,
2871
+ y: 0,
2872
+ w: 128,
2873
+ h: 128
2874
+ },
2875
+ sourceSize: {
2876
+ w: 128,
2877
+ h: 128
2878
+ },
2879
+ anchor: {
2880
+ ax: 0.5,
2881
+ ay: 0.5
2882
+ }
2883
+ },
2884
+ "char-skin-skin-brown-0": {
2885
+ frame: {
2886
+ x: 0,
2887
+ y: 256,
2888
+ w: 128,
2889
+ h: 128
2890
+ },
2891
+ rotated: false,
2892
+ trimmed: false,
2893
+ spriteSourceSize: {
2894
+ x: 0,
2895
+ y: 0,
2896
+ w: 128,
2897
+ h: 128
2898
+ },
2899
+ sourceSize: {
2900
+ w: 128,
2901
+ h: 128
2902
+ },
2903
+ anchor: {
2904
+ ax: 0.5,
2905
+ ay: 0.5
2906
+ }
2907
+ },
2908
+ "char-skin-skin-dark-0": {
2909
+ frame: {
2910
+ x: 128,
2911
+ y: 256,
2912
+ w: 128,
2913
+ h: 128
2914
+ },
2915
+ rotated: false,
2916
+ trimmed: false,
2917
+ spriteSourceSize: {
2918
+ x: 0,
2919
+ y: 0,
2920
+ w: 128,
2921
+ h: 128
2922
+ },
2923
+ sourceSize: {
2924
+ w: 128,
2925
+ h: 128
2926
+ },
2927
+ anchor: {
2928
+ ax: 0.5,
2929
+ ay: 0.5
2930
+ }
2931
+ },
2932
+ "char-skin-skin-light-0": {
2933
+ frame: {
2934
+ x: 256,
2935
+ y: 256,
2936
+ w: 128,
2937
+ h: 128
2938
+ },
2939
+ rotated: false,
2940
+ trimmed: false,
2941
+ spriteSourceSize: {
2942
+ x: 0,
2943
+ y: 0,
2944
+ w: 128,
2945
+ h: 128
2946
+ },
2947
+ sourceSize: {
2948
+ w: 128,
2949
+ h: 128
2950
+ },
2951
+ anchor: {
2952
+ ax: 0.5,
2953
+ ay: 0.5
2954
+ }
2955
+ }
2956
+ }
2957
+ };
2958
+
2959
+ // src/manifests/ui-sprites.atlas.json
2960
+ var ui_sprites_atlas_default = {
2961
+ meta: {
2962
+ app: "sunshade-atlas-pipeline",
2963
+ version: "1.0.0",
2964
+ image: "https://cdn.sunshade.icu/assets/kenney/ui-pack/ui-sprites-atlas.png",
2965
+ format: "RGBA8888",
2966
+ size: {
2967
+ w: 2048,
2968
+ h: 256
2969
+ },
2970
+ scale: "1",
2971
+ pack: "ui-sprites"
2972
+ },
2973
+ frames: {
2974
+ "button-default": {
2975
+ frame: {
2976
+ x: 0,
2977
+ y: 0,
2978
+ w: 128,
2979
+ h: 128
2980
+ },
2981
+ rotated: false,
2982
+ trimmed: false,
2983
+ spriteSourceSize: {
2984
+ x: 0,
2985
+ y: 0,
2986
+ w: 128,
2987
+ h: 128
2988
+ },
2989
+ sourceSize: {
2990
+ w: 128,
2991
+ h: 128
2992
+ },
2993
+ anchor: {
2994
+ ax: 0.5,
2995
+ ay: 0.5
2996
+ }
2997
+ },
2998
+ "button-hover": {
2999
+ frame: {
3000
+ x: 128,
3001
+ y: 0,
3002
+ w: 128,
3003
+ h: 128
3004
+ },
3005
+ rotated: false,
3006
+ trimmed: false,
3007
+ spriteSourceSize: {
3008
+ x: 0,
3009
+ y: 0,
3010
+ w: 128,
3011
+ h: 128
3012
+ },
3013
+ sourceSize: {
3014
+ w: 128,
3015
+ h: 128
3016
+ },
3017
+ anchor: {
3018
+ ax: 0.5,
3019
+ ay: 0.5
3020
+ }
3021
+ },
3022
+ "button-pressed": {
3023
+ frame: {
3024
+ x: 256,
3025
+ y: 0,
3026
+ w: 128,
3027
+ h: 128
3028
+ },
3029
+ rotated: false,
3030
+ trimmed: false,
3031
+ spriteSourceSize: {
3032
+ x: 0,
3033
+ y: 0,
3034
+ w: 128,
3035
+ h: 128
3036
+ },
3037
+ sourceSize: {
3038
+ w: 128,
3039
+ h: 128
3040
+ },
3041
+ anchor: {
3042
+ ax: 0.5,
3043
+ ay: 0.5
3044
+ }
3045
+ },
3046
+ "button-disabled": {
3047
+ frame: {
3048
+ x: 384,
3049
+ y: 0,
3050
+ w: 128,
3051
+ h: 128
3052
+ },
3053
+ rotated: false,
3054
+ trimmed: false,
3055
+ spriteSourceSize: {
3056
+ x: 0,
3057
+ y: 0,
3058
+ w: 128,
3059
+ h: 128
3060
+ },
3061
+ sourceSize: {
3062
+ w: 128,
3063
+ h: 128
3064
+ },
3065
+ anchor: {
3066
+ ax: 0.5,
3067
+ ay: 0.5
3068
+ }
3069
+ },
3070
+ "button-round-blue": {
3071
+ frame: {
3072
+ x: 512,
3073
+ y: 0,
3074
+ w: 128,
3075
+ h: 128
3076
+ },
3077
+ rotated: false,
3078
+ trimmed: false,
3079
+ spriteSourceSize: {
3080
+ x: 0,
3081
+ y: 0,
3082
+ w: 128,
3083
+ h: 128
3084
+ },
3085
+ sourceSize: {
3086
+ w: 128,
3087
+ h: 128
3088
+ },
3089
+ anchor: {
3090
+ ax: 0.5,
3091
+ ay: 0.5
3092
+ }
3093
+ },
3094
+ "button-round-green": {
3095
+ frame: {
3096
+ x: 640,
3097
+ y: 0,
3098
+ w: 128,
3099
+ h: 128
3100
+ },
3101
+ rotated: false,
3102
+ trimmed: false,
3103
+ spriteSourceSize: {
3104
+ x: 0,
3105
+ y: 0,
3106
+ w: 128,
3107
+ h: 128
3108
+ },
3109
+ sourceSize: {
3110
+ w: 128,
3111
+ h: 128
3112
+ },
3113
+ anchor: {
3114
+ ax: 0.5,
3115
+ ay: 0.5
3116
+ }
3117
+ },
3118
+ "button-round-red": {
3119
+ frame: {
3120
+ x: 768,
3121
+ y: 0,
3122
+ w: 128,
3123
+ h: 128
3124
+ },
3125
+ rotated: false,
3126
+ trimmed: false,
3127
+ spriteSourceSize: {
3128
+ x: 0,
3129
+ y: 0,
3130
+ w: 128,
3131
+ h: 128
3132
+ },
3133
+ sourceSize: {
3134
+ w: 128,
3135
+ h: 128
3136
+ },
3137
+ anchor: {
3138
+ ax: 0.5,
3139
+ ay: 0.5
3140
+ }
3141
+ },
3142
+ "button-round-yellow": {
3143
+ frame: {
3144
+ x: 896,
3145
+ y: 0,
3146
+ w: 128,
3147
+ h: 128
3148
+ },
3149
+ rotated: false,
3150
+ trimmed: false,
3151
+ spriteSourceSize: {
3152
+ x: 0,
3153
+ y: 0,
3154
+ w: 128,
3155
+ h: 128
3156
+ },
3157
+ sourceSize: {
3158
+ w: 128,
3159
+ h: 128
3160
+ },
3161
+ anchor: {
3162
+ ax: 0.5,
3163
+ ay: 0.5
3164
+ }
3165
+ },
3166
+ "panel-wooden": {
3167
+ frame: {
3168
+ x: 1024,
3169
+ y: 0,
3170
+ w: 128,
3171
+ h: 128
3172
+ },
3173
+ rotated: false,
3174
+ trimmed: false,
3175
+ spriteSourceSize: {
3176
+ x: 0,
3177
+ y: 0,
3178
+ w: 128,
3179
+ h: 128
3180
+ },
3181
+ sourceSize: {
3182
+ w: 128,
3183
+ h: 128
3184
+ },
3185
+ anchor: {
3186
+ ax: 0.5,
3187
+ ay: 0.5
3188
+ }
3189
+ },
3190
+ "panel-metal": {
3191
+ frame: {
3192
+ x: 1152,
3193
+ y: 0,
3194
+ w: 128,
3195
+ h: 128
3196
+ },
3197
+ rotated: false,
3198
+ trimmed: false,
3199
+ spriteSourceSize: {
3200
+ x: 0,
3201
+ y: 0,
3202
+ w: 128,
3203
+ h: 128
3204
+ },
3205
+ sourceSize: {
3206
+ w: 128,
3207
+ h: 128
3208
+ },
3209
+ anchor: {
3210
+ ax: 0.5,
3211
+ ay: 0.5
3212
+ }
3213
+ },
3214
+ "panel-glass": {
3215
+ frame: {
3216
+ x: 1280,
3217
+ y: 0,
3218
+ w: 128,
3219
+ h: 128
3220
+ },
3221
+ rotated: false,
3222
+ trimmed: false,
3223
+ spriteSourceSize: {
3224
+ x: 0,
3225
+ y: 0,
3226
+ w: 128,
3227
+ h: 128
3228
+ },
3229
+ sourceSize: {
3230
+ w: 128,
3231
+ h: 128
3232
+ },
3233
+ anchor: {
3234
+ ax: 0.5,
3235
+ ay: 0.5
3236
+ }
3237
+ },
3238
+ "icon-checkmark": {
3239
+ frame: {
3240
+ x: 1408,
3241
+ y: 0,
3242
+ w: 128,
3243
+ h: 128
3244
+ },
3245
+ rotated: false,
3246
+ trimmed: false,
3247
+ spriteSourceSize: {
3248
+ x: 0,
3249
+ y: 0,
3250
+ w: 128,
3251
+ h: 128
3252
+ },
3253
+ sourceSize: {
3254
+ w: 128,
3255
+ h: 128
3256
+ },
3257
+ anchor: {
3258
+ ax: 0.5,
3259
+ ay: 0.5
3260
+ }
3261
+ },
3262
+ "icon-cross": {
3263
+ frame: {
3264
+ x: 1536,
3265
+ y: 0,
3266
+ w: 128,
3267
+ h: 128
3268
+ },
3269
+ rotated: false,
3270
+ trimmed: false,
3271
+ spriteSourceSize: {
3272
+ x: 0,
3273
+ y: 0,
3274
+ w: 128,
3275
+ h: 128
3276
+ },
3277
+ sourceSize: {
3278
+ w: 128,
3279
+ h: 128
3280
+ },
3281
+ anchor: {
3282
+ ax: 0.5,
3283
+ ay: 0.5
3284
+ }
3285
+ },
3286
+ "icon-arrow-up": {
3287
+ frame: {
3288
+ x: 1664,
3289
+ y: 0,
3290
+ w: 128,
3291
+ h: 128
3292
+ },
3293
+ rotated: false,
3294
+ trimmed: false,
3295
+ spriteSourceSize: {
3296
+ x: 0,
3297
+ y: 0,
3298
+ w: 128,
3299
+ h: 128
3300
+ },
3301
+ sourceSize: {
3302
+ w: 128,
3303
+ h: 128
3304
+ },
3305
+ anchor: {
3306
+ ax: 0.5,
3307
+ ay: 0.5
3308
+ }
3309
+ },
3310
+ "icon-arrow-down": {
3311
+ frame: {
3312
+ x: 1792,
3313
+ y: 0,
3314
+ w: 128,
3315
+ h: 128
3316
+ },
3317
+ rotated: false,
3318
+ trimmed: false,
3319
+ spriteSourceSize: {
3320
+ x: 0,
3321
+ y: 0,
3322
+ w: 128,
3323
+ h: 128
3324
+ },
3325
+ sourceSize: {
3326
+ w: 128,
3327
+ h: 128
3328
+ },
3329
+ anchor: {
3330
+ ax: 0.5,
3331
+ ay: 0.5
3332
+ }
3333
+ },
3334
+ "icon-arrow-left": {
3335
+ frame: {
3336
+ x: 1920,
3337
+ y: 0,
3338
+ w: 128,
3339
+ h: 128
3340
+ },
3341
+ rotated: false,
3342
+ trimmed: false,
3343
+ spriteSourceSize: {
3344
+ x: 0,
3345
+ y: 0,
3346
+ w: 128,
3347
+ h: 128
3348
+ },
3349
+ sourceSize: {
3350
+ w: 128,
3351
+ h: 128
3352
+ },
3353
+ anchor: {
3354
+ ax: 0.5,
3355
+ ay: 0.5
3356
+ }
3357
+ },
3358
+ "icon-arrow-right": {
3359
+ frame: {
3360
+ x: 0,
3361
+ y: 128,
3362
+ w: 128,
3363
+ h: 128
3364
+ },
3365
+ rotated: false,
3366
+ trimmed: false,
3367
+ spriteSourceSize: {
3368
+ x: 0,
3369
+ y: 0,
3370
+ w: 128,
3371
+ h: 128
3372
+ },
3373
+ sourceSize: {
3374
+ w: 128,
3375
+ h: 128
3376
+ },
3377
+ anchor: {
3378
+ ax: 0.5,
3379
+ ay: 0.5
3380
+ }
3381
+ },
3382
+ "icon-settings": {
3383
+ frame: {
3384
+ x: 128,
3385
+ y: 128,
3386
+ w: 128,
3387
+ h: 128
3388
+ },
3389
+ rotated: false,
3390
+ trimmed: false,
3391
+ spriteSourceSize: {
3392
+ x: 0,
3393
+ y: 0,
3394
+ w: 128,
3395
+ h: 128
3396
+ },
3397
+ sourceSize: {
3398
+ w: 128,
3399
+ h: 128
3400
+ },
3401
+ anchor: {
3402
+ ax: 0.5,
3403
+ ay: 0.5
3404
+ }
3405
+ },
3406
+ "icon-star": {
3407
+ frame: {
3408
+ x: 256,
3409
+ y: 128,
3410
+ w: 128,
3411
+ h: 128
3412
+ },
3413
+ rotated: false,
3414
+ trimmed: false,
3415
+ spriteSourceSize: {
3416
+ x: 0,
3417
+ y: 0,
3418
+ w: 128,
3419
+ h: 128
3420
+ },
3421
+ sourceSize: {
3422
+ w: 128,
3423
+ h: 128
3424
+ },
3425
+ anchor: {
3426
+ ax: 0.5,
3427
+ ay: 0.5
3428
+ }
3429
+ },
3430
+ "slider-bar": {
3431
+ frame: {
3432
+ x: 384,
3433
+ y: 128,
3434
+ w: 128,
3435
+ h: 128
3436
+ },
3437
+ rotated: false,
3438
+ trimmed: false,
3439
+ spriteSourceSize: {
3440
+ x: 0,
3441
+ y: 0,
3442
+ w: 128,
3443
+ h: 128
3444
+ },
3445
+ sourceSize: {
3446
+ w: 128,
3447
+ h: 128
3448
+ },
3449
+ anchor: {
3450
+ ax: 0.5,
3451
+ ay: 0.5
3452
+ }
3453
+ },
3454
+ "slider-knob": {
3455
+ frame: {
3456
+ x: 512,
3457
+ y: 128,
3458
+ w: 128,
3459
+ h: 128
3460
+ },
3461
+ rotated: false,
3462
+ trimmed: false,
3463
+ spriteSourceSize: {
3464
+ x: 0,
3465
+ y: 0,
3466
+ w: 128,
3467
+ h: 128
3468
+ },
3469
+ sourceSize: {
3470
+ w: 128,
3471
+ h: 128
3472
+ },
3473
+ anchor: {
3474
+ ax: 0.5,
3475
+ ay: 0.5
3476
+ }
3477
+ },
3478
+ "bar-progress-bg": {
3479
+ frame: {
3480
+ x: 640,
3481
+ y: 128,
3482
+ w: 128,
3483
+ h: 128
3484
+ },
3485
+ rotated: false,
3486
+ trimmed: false,
3487
+ spriteSourceSize: {
3488
+ x: 0,
3489
+ y: 0,
3490
+ w: 128,
3491
+ h: 128
3492
+ },
3493
+ sourceSize: {
3494
+ w: 128,
3495
+ h: 128
3496
+ },
3497
+ anchor: {
3498
+ ax: 0.5,
3499
+ ay: 0.5
3500
+ }
3501
+ },
3502
+ "bar-progress-fill": {
3503
+ frame: {
3504
+ x: 768,
3505
+ y: 128,
3506
+ w: 128,
3507
+ h: 128
3508
+ },
3509
+ rotated: false,
3510
+ trimmed: false,
3511
+ spriteSourceSize: {
3512
+ x: 0,
3513
+ y: 0,
3514
+ w: 128,
3515
+ h: 128
3516
+ },
3517
+ sourceSize: {
3518
+ w: 128,
3519
+ h: 128
3520
+ },
3521
+ anchor: {
3522
+ ax: 0.5,
3523
+ ay: 0.5
3524
+ }
3525
+ }
3526
+ }
3527
+ };
3528
+
3529
+ // src/manifests/keys.ts
3530
+ var PLAYING_CARDS = [
3531
+ "card-spades-a",
3532
+ "card-spades-02",
3533
+ "card-spades-03",
3534
+ "card-spades-04",
3535
+ "card-spades-05",
3536
+ "card-spades-06",
3537
+ "card-spades-07",
3538
+ "card-spades-08",
3539
+ "card-spades-09",
3540
+ "card-spades-10",
3541
+ "card-spades-j",
3542
+ "card-spades-q",
3543
+ "card-spades-k",
3544
+ "card-hearts-a",
3545
+ "card-hearts-02",
3546
+ "card-hearts-03",
3547
+ "card-hearts-04",
3548
+ "card-hearts-05",
3549
+ "card-hearts-06",
3550
+ "card-hearts-07",
3551
+ "card-hearts-08",
3552
+ "card-hearts-09",
3553
+ "card-hearts-10",
3554
+ "card-hearts-j",
3555
+ "card-hearts-q",
3556
+ "card-hearts-k",
3557
+ "card-clubs-a",
3558
+ "card-clubs-02",
3559
+ "card-clubs-03",
3560
+ "card-clubs-04",
3561
+ "card-clubs-05",
3562
+ "card-clubs-06",
3563
+ "card-clubs-07",
3564
+ "card-clubs-08",
3565
+ "card-clubs-09",
3566
+ "card-clubs-10",
3567
+ "card-clubs-j",
3568
+ "card-clubs-q",
3569
+ "card-clubs-k",
3570
+ "card-diamonds-a",
3571
+ "card-diamonds-02",
3572
+ "card-diamonds-03",
3573
+ "card-diamonds-04",
3574
+ "card-diamonds-05",
3575
+ "card-diamonds-06",
3576
+ "card-diamonds-07",
3577
+ "card-diamonds-08",
3578
+ "card-diamonds-09",
3579
+ "card-diamonds-10",
3580
+ "card-diamonds-j",
3581
+ "card-diamonds-q",
3582
+ "card-diamonds-k",
3583
+ "cardback-blue",
3584
+ "cardback-red",
3585
+ "cardback-green",
3586
+ "cardback-yellow",
3587
+ "cardback-cyan",
3588
+ "cardback-default"
3589
+ ];
3590
+ var ISOMETRIC_TILES = [
3591
+ "tile-isometric-grass",
3592
+ "tile-isometric-dirt",
3593
+ "tile-isometric-stone",
3594
+ "tile-isometric-water",
3595
+ "tile-isometric-sand",
3596
+ "tile-isometric-wood-floor",
3597
+ "tile-isometric-dungeon-floor",
3598
+ "tile-isometric-wall-stone",
3599
+ "tile-isometric-wall-wood",
3600
+ "tile-isometric-wall-corner",
3601
+ "tile-isometric-stairs-stone",
3602
+ "tile-isometric-stairs-wood",
3603
+ "tile-isometric-door-closed",
3604
+ "tile-isometric-door-open",
3605
+ "tile-isometric-chest-closed",
3606
+ "tile-isometric-chest-open",
3607
+ "tile-isometric-barrel",
3608
+ "tile-isometric-crate",
3609
+ "tile-isometric-bookshelf",
3610
+ "tile-isometric-table",
3611
+ "tile-isometric-chair",
3612
+ "tile-isometric-pillar",
3613
+ "tile-isometric-torch",
3614
+ "tile-isometric-rug"
3615
+ ];
3616
+ var MODULAR_CHARACTERS = [
3617
+ "char-face-face-0",
3618
+ "char-face-face-1",
3619
+ "char-face-face-2",
3620
+ "char-face-face-3",
3621
+ "char-face-face-4",
3622
+ "char-face-face-5",
3623
+ "char-face-face-6",
3624
+ "char-face-face-7",
3625
+ "char-hair-hair-blonde-0",
3626
+ "char-hair-hair-blonde-1",
3627
+ "char-hair-hair-brown-0",
3628
+ "char-hair-hair-brown-1",
3629
+ "char-hair-hair-black-0",
3630
+ "char-hair-hair-black-1",
3631
+ "char-hair-hair-red-0",
3632
+ "char-pants-pants-blue-0",
3633
+ "char-pants-pants-blue-1",
3634
+ "char-pants-pants-green-0",
3635
+ "char-pants-pants-red-0",
3636
+ "char-pants-pants-black-0",
3637
+ "char-pants-pants-white-0",
3638
+ "char-shirts-shirt-blue-0",
3639
+ "char-shirts-shirt-blue-1",
3640
+ "char-shirts-shirt-green-0",
3641
+ "char-shirts-shirt-red-0",
3642
+ "char-shirts-shirt-black-0",
3643
+ "char-shirts-shirt-white-0",
3644
+ "char-shoes-shoes-brown-0",
3645
+ "char-shoes-shoes-black-0",
3646
+ "char-shoes-shoes-white-0",
3647
+ "char-shoes-shoes-red-0",
3648
+ "char-skin-skin-beige-0",
3649
+ "char-skin-skin-brown-0",
3650
+ "char-skin-skin-dark-0",
3651
+ "char-skin-skin-light-0"
3652
+ ];
3653
+ var UI_SPRITES = [
3654
+ "button-default",
3655
+ "button-hover",
3656
+ "button-pressed",
3657
+ "button-disabled",
3658
+ "button-round-blue",
3659
+ "button-round-green",
3660
+ "button-round-red",
3661
+ "button-round-yellow",
3662
+ "panel-wooden",
3663
+ "panel-metal",
3664
+ "panel-glass",
3665
+ "icon-checkmark",
3666
+ "icon-cross",
3667
+ "icon-arrow-up",
3668
+ "icon-arrow-down",
3669
+ "icon-arrow-left",
3670
+ "icon-arrow-right",
3671
+ "icon-settings",
3672
+ "icon-star",
3673
+ "slider-bar",
3674
+ "slider-knob",
3675
+ "bar-progress-bg",
3676
+ "bar-progress-fill"
3677
+ ];
3678
+
3679
+ // src/manifests/index.ts
3680
+ var playingCardsAtlas = playing_cards_atlas_default;
3681
+ var isometricTilesAtlas = isometric_tiles_atlas_default;
3682
+ var modularCharactersAtlas = modular_characters_atlas_default;
3683
+ var uiSpritesAtlas = ui_sprites_atlas_default;
3684
+ function getFrameCoordinates(manifest, frameKey) {
3685
+ return manifest.frames[frameKey];
3686
+ }
3687
+ function toFlameSpriteData(manifest, frameKey) {
3688
+ const frameData = manifest.frames[frameKey];
3689
+ if (!frameData) return null;
3690
+ return {
3691
+ srcPosition: [frameData.frame.x, frameData.frame.y],
3692
+ srcSize: [frameData.frame.w, frameData.frame.h],
3693
+ anchor: [frameData.anchor?.ax ?? 0.5, frameData.anchor?.ay ?? 0.5]
3694
+ };
3695
+ }
3696
+
3697
+ // src/catalog/seed.ts
3698
+ var SEED_CATALOG_ASSETS = [
3699
+ // Avatar Studio: Modular Characters
3700
+ {
3701
+ app_scope: "avatar-studio",
3702
+ category: "avatar_base",
3703
+ asset_key: "avatar-base-neutral",
3704
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/base/base_neutral.png",
3705
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "base" }
3706
+ },
3707
+ {
3708
+ app_scope: "avatar-studio",
3709
+ category: "avatar_base",
3710
+ asset_key: "avatar-base-pale",
3711
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/base/base_pale.png",
3712
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "base" }
3713
+ },
3714
+ {
3715
+ app_scope: "avatar-studio",
3716
+ category: "avatar_base",
3717
+ asset_key: "avatar-base-warm",
3718
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/base/base_warm.png",
3719
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "base" }
3720
+ },
3721
+ {
3722
+ app_scope: "avatar-studio",
3723
+ category: "avatar_hair",
3724
+ asset_key: "avatar-hair-curly-brown",
3725
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/hair/curly_brown.png",
3726
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "hair" }
3727
+ },
3728
+ {
3729
+ app_scope: "avatar-studio",
3730
+ category: "avatar_hair",
3731
+ asset_key: "avatar-hair-short-black",
3732
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/hair/short_black.png",
3733
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "hair" }
3734
+ },
3735
+ {
3736
+ app_scope: "avatar-studio",
3737
+ category: "avatar_hair",
3738
+ asset_key: "avatar-hair-spiky-blonde",
3739
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/hair/spiky_blonde.png",
3740
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "hair" }
3741
+ },
3742
+ {
3743
+ app_scope: "avatar-studio",
3744
+ category: "avatar_hair",
3745
+ asset_key: "avatar-hair-bob-red",
3746
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/hair/bob_red.png",
3747
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "hair" }
3748
+ },
3749
+ {
3750
+ app_scope: "avatar-studio",
3751
+ category: "avatar_eyes",
3752
+ asset_key: "avatar-eyes-round-blue",
3753
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/eyes/round_blue.png",
3754
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "eyes" }
3755
+ },
3756
+ {
3757
+ app_scope: "avatar-studio",
3758
+ category: "avatar_eyes",
3759
+ asset_key: "avatar-eyes-focused-green",
3760
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/eyes/focused_green.png",
3761
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "eyes" }
3762
+ },
3763
+ {
3764
+ app_scope: "avatar-studio",
3765
+ category: "avatar_eyes",
3766
+ asset_key: "avatar-eyes-sleepy-brown",
3767
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/eyes/sleepy_brown.png",
3768
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "eyes" }
3769
+ },
3770
+ {
3771
+ app_scope: "avatar-studio",
3772
+ category: "avatar_mouth",
3773
+ asset_key: "avatar-mouth-smile",
3774
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/mouth/smile.png",
3775
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "mouth" }
3776
+ },
3777
+ {
3778
+ app_scope: "avatar-studio",
3779
+ category: "avatar_mouth",
3780
+ asset_key: "avatar-mouth-grin",
3781
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/mouth/grin.png",
3782
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "mouth" }
3783
+ },
3784
+ {
3785
+ app_scope: "avatar-studio",
3786
+ category: "avatar_mouth",
3787
+ asset_key: "avatar-mouth-neutral",
3788
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/mouth/neutral.png",
3789
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "mouth" }
3790
+ },
3791
+ {
3792
+ app_scope: "avatar-studio",
3793
+ category: "avatar_outfit",
3794
+ asset_key: "avatar-outfit-hoodie-cyan",
3795
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/outfit/hoodie_cyan.png",
3796
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "outfit" }
3797
+ },
3798
+ {
3799
+ app_scope: "avatar-studio",
3800
+ category: "avatar_outfit",
3801
+ asset_key: "avatar-outfit-tunic-green",
3802
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/outfit/tunic_green.png",
3803
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "outfit" }
3804
+ },
3805
+ {
3806
+ app_scope: "avatar-studio",
3807
+ category: "avatar_outfit",
3808
+ asset_key: "avatar-outfit-jacket-dark",
3809
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/outfit/jacket_dark.png",
3810
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "outfit" }
3811
+ },
3812
+ {
3813
+ app_scope: "avatar-studio",
3814
+ category: "avatar_hat",
3815
+ asset_key: "avatar-hat-beanie-orange",
3816
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/hat/beanie_orange.png",
3817
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "hat" }
3818
+ },
3819
+ {
3820
+ app_scope: "avatar-studio",
3821
+ category: "avatar_hat",
3822
+ asset_key: "avatar-hat-cap-blue",
3823
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/hat/cap_blue.png",
3824
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "hat" }
3825
+ },
3826
+ {
3827
+ app_scope: "avatar-studio",
3828
+ category: "avatar_accessory",
3829
+ asset_key: "avatar-accessory-glasses-black",
3830
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/accessory/glasses_black.png",
3831
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "accessory" }
3832
+ },
3833
+ {
3834
+ app_scope: "avatar-studio",
3835
+ category: "avatar_accessory",
3836
+ asset_key: "avatar-accessory-scarf-red",
3837
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/modular-characters/accessory/scarf_red.png",
3838
+ metadata: { format: "png", width: 128, height: 128, license: "CC0-Kenney", layer: "accessory" }
3839
+ },
3840
+ {
3841
+ app_scope: "avatar-studio",
3842
+ category: "avatar_frame",
3843
+ asset_key: "avatar-frame-bronze",
3844
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/fantasy-ui/frames/frame_bronze.png",
3845
+ metadata: { format: "png", width: 160, height: 160, license: "CC0-Kenney", layer: "frame" }
3846
+ },
3847
+ {
3848
+ app_scope: "avatar-studio",
3849
+ category: "avatar_frame",
3850
+ asset_key: "avatar-frame-silver",
3851
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/fantasy-ui/frames/frame_silver.png",
3852
+ metadata: { format: "png", width: 160, height: 160, license: "CC0-Kenney", layer: "frame" }
3853
+ },
3854
+ {
3855
+ app_scope: "avatar-studio",
3856
+ category: "avatar_frame",
3857
+ asset_key: "avatar-frame-gold",
3858
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/fantasy-ui/frames/frame_gold.png",
3859
+ metadata: { format: "png", width: 160, height: 160, license: "CC0-Kenney", layer: "frame" }
3860
+ },
3861
+ // Critterverse: Modular Splice Parts
3862
+ {
3863
+ app_scope: "critterverse",
3864
+ category: "critter_head",
3865
+ asset_key: "critter-head-fuzzy-orange",
3866
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/head_fuzzy_orange.png",
3867
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3868
+ },
3869
+ {
3870
+ app_scope: "critterverse",
3871
+ category: "critter_head",
3872
+ asset_key: "critter-head-scaled-teal",
3873
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/head_scaled_teal.png",
3874
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3875
+ },
3876
+ {
3877
+ app_scope: "critterverse",
3878
+ category: "critter_body",
3879
+ asset_key: "critter-body-chubby-pink",
3880
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/body_chubby_pink.png",
3881
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3882
+ },
3883
+ {
3884
+ app_scope: "critterverse",
3885
+ category: "critter_body",
3886
+ asset_key: "critter-body-sleek-green",
3887
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/body_sleek_green.png",
3888
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3889
+ },
3890
+ {
3891
+ app_scope: "critterverse",
3892
+ category: "critter_limbs",
3893
+ asset_key: "critter-limbs-paws-brown",
3894
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/limbs_paws_brown.png",
3895
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3896
+ },
3897
+ {
3898
+ app_scope: "critterverse",
3899
+ category: "critter_wings",
3900
+ asset_key: "critter-wings-feathered-white",
3901
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/wings_feathered_white.png",
3902
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3903
+ },
3904
+ {
3905
+ app_scope: "critterverse",
3906
+ category: "critter_tail",
3907
+ asset_key: "critter-tail-fluffy-gold",
3908
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/tail_fluffy_gold.png",
3909
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3910
+ },
3911
+ {
3912
+ app_scope: "critterverse",
3913
+ category: "critter_horns",
3914
+ asset_key: "critter-horns-curved-ivory",
3915
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/critters/parts/horns_curved_ivory.png",
3916
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3917
+ },
3918
+ // War: Second Wind (WSW) Cards
3919
+ {
3920
+ app_scope: "wsw",
3921
+ category: "card_back",
3922
+ asset_key: "card-back-cyan",
3923
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/cards/backs/card_back_cyan.png",
3924
+ metadata: { format: "png", width: 140, height: 190, license: "CC0-Kenney" }
3925
+ },
3926
+ {
3927
+ app_scope: "wsw",
3928
+ category: "card_back",
3929
+ asset_key: "card-back-crimson",
3930
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/cards/backs/card_back_crimson.png",
3931
+ metadata: { format: "png", width: 140, height: 190, license: "CC0-Kenney" }
3932
+ },
3933
+ {
3934
+ app_scope: "wsw",
3935
+ category: "card_face",
3936
+ asset_key: "card-face-spades-ace",
3937
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/cards/faces/card_spades_A.png",
3938
+ metadata: { format: "png", width: 140, height: 190, license: "CC0-Kenney" }
3939
+ },
3940
+ {
3941
+ app_scope: "wsw",
3942
+ category: "card_face",
3943
+ asset_key: "card-face-hearts-king",
3944
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/cards/faces/card_hearts_K.png",
3945
+ metadata: { format: "png", width: 140, height: 190, license: "CC0-Kenney" }
3946
+ },
3947
+ // Puk Huk Physics Elements
3948
+ {
3949
+ app_scope: "puk-huk",
3950
+ category: "physics_puck",
3951
+ asset_key: "puk-puck-standard",
3952
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/physics/pucks/puck_standard.png",
3953
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney", radius: 32 }
3954
+ },
3955
+ {
3956
+ app_scope: "puk-huk",
3957
+ category: "physics_bumper",
3958
+ asset_key: "puk-bumper-wood",
3959
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/physics/bumpers/bumper_wood.png",
3960
+ metadata: { format: "png", width: 128, height: 32, license: "CC0-Kenney", restitution: 0.85 }
3961
+ },
3962
+ // Cozy Villages Isometric Assets
3963
+ {
3964
+ app_scope: "cozy",
3965
+ category: "isometric_building",
3966
+ asset_key: "cozy-building-cottage",
3967
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/isometric/buildings/cottage.png",
3968
+ metadata: { format: "png", width: 256, height: 256, license: "CC0-Kenney" }
3969
+ },
3970
+ {
3971
+ app_scope: "cozy",
3972
+ category: "isometric_tile",
3973
+ asset_key: "cozy-tile-grass-meadow",
3974
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/isometric/tiles/grass_meadow.png",
3975
+ metadata: { format: "png", width: 256, height: 128, license: "CC0-Kenney" }
3976
+ },
3977
+ // Shared Tactile FX & Audio
3978
+ {
3979
+ app_scope: "all",
3980
+ category: "particle_fx",
3981
+ asset_key: "fx-particle-starburst",
3982
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/particles/starburst.png",
3983
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3984
+ },
3985
+ {
3986
+ app_scope: "all",
3987
+ category: "particle_fx",
3988
+ asset_key: "fx-particle-dust-puff",
3989
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/particles/dust_puff.png",
3990
+ metadata: { format: "png", width: 64, height: 64, license: "CC0-Kenney" }
3991
+ },
3992
+ {
3993
+ app_scope: "all",
3994
+ category: "ui_audio",
3995
+ asset_key: "audio-ui-tap",
3996
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/audio/ui/tap_clean.ogg",
3997
+ metadata: { format: "ogg", duration_ms: 85, license: "CC0-Kenney" }
3998
+ },
3999
+ {
4000
+ app_scope: "all",
4001
+ category: "impact_audio",
4002
+ asset_key: "audio-impact-wood-thud",
4003
+ cdn_url: "https://cdn.sunshade.icu/assets/kenney/audio/impacts/wood_thud.ogg",
4004
+ metadata: { format: "ogg", duration_ms: 140, license: "CC0-Kenney" }
4005
+ }
4006
+ ];
4007
+
4008
+ // src/catalog/schema.ts
4009
+ var CATALOG_SCHEMA_NAME = "catalog";
4010
+ var CATALOG_TABLE_NAME = "assets";
4011
+ var CATALOG_FULL_TABLE_NAME = `${CATALOG_SCHEMA_NAME}.${CATALOG_TABLE_NAME}`;
4012
+ var CATALOG_ASSETS_SCHEMA_SQL = `
4013
+ -- Schema Provisioning
4014
+ CREATE SCHEMA IF NOT EXISTS catalog;
4015
+
4016
+ -- catalog.assets \u2014 Universal Game Asset Registry
4017
+ CREATE TABLE IF NOT EXISTS catalog.assets (
4018
+ id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
4019
+ app_scope TEXT NOT NULL,
4020
+ category TEXT NOT NULL,
4021
+ asset_key TEXT UNIQUE NOT NULL,
4022
+ cdn_url TEXT NOT NULL,
4023
+ metadata JSONB NOT NULL DEFAULT '{}'::jsonb,
4024
+ created_at TIMESTAMPTZ NOT NULL DEFAULT now()
4025
+ );
4026
+
4027
+ -- Indexes for Rapid Querying
4028
+ CREATE INDEX IF NOT EXISTS idx_catalog_assets_app_scope
4029
+ ON catalog.assets (app_scope);
4030
+
4031
+ CREATE INDEX IF NOT EXISTS idx_catalog_assets_category
4032
+ ON catalog.assets (category);
4033
+
4034
+ -- Role Grants
4035
+ GRANT USAGE ON SCHEMA catalog TO anon, authenticated, service_role;
4036
+ GRANT ALL ON ALL TABLES IN SCHEMA catalog TO service_role;
4037
+ GRANT ALL ON ALL SEQUENCES IN SCHEMA catalog TO service_role;
4038
+ GRANT ALL ON ALL ROUTINES IN SCHEMA catalog TO service_role;
4039
+ GRANT SELECT ON ALL TABLES IN SCHEMA catalog TO anon, authenticated;
4040
+
4041
+ -- Row Level Security & Access Policies
4042
+ ALTER TABLE catalog.assets ENABLE ROW LEVEL SECURITY;
4043
+ ALTER TABLE catalog.assets FORCE ROW LEVEL SECURITY;
4044
+
4045
+ DO $$ BEGIN
4046
+ DROP POLICY IF EXISTS "catalog_assets_public_read" ON catalog.assets;
4047
+ CREATE POLICY "catalog_assets_public_read"
4048
+ ON catalog.assets
4049
+ FOR SELECT
4050
+ TO anon, authenticated
4051
+ USING (true);
4052
+ END $$;
4053
+
4054
+ DO $$ BEGIN
4055
+ DROP POLICY IF EXISTS "catalog_assets_service_role_all" ON catalog.assets;
4056
+ CREATE POLICY "catalog_assets_service_role_all"
4057
+ ON catalog.assets
4058
+ FOR ALL
4059
+ TO service_role
4060
+ USING (true)
4061
+ WITH CHECK (true);
4062
+ END $$;
4063
+ `.trim();
4064
+ function isCatalogAsset(value) {
4065
+ if (!value || typeof value !== "object") return false;
4066
+ const item = value;
4067
+ return typeof item.app_scope === "string" && item.app_scope.length > 0 && typeof item.category === "string" && item.category.length > 0 && typeof item.asset_key === "string" && item.asset_key.length > 0 && typeof item.cdn_url === "string" && item.cdn_url.length > 0 && typeof item.metadata === "object" && item.metadata !== null;
4068
+ }
4069
+ function validateCatalogAsset(asset) {
4070
+ const errors = [];
4071
+ if (!asset || typeof asset !== "object") {
4072
+ return { valid: false, errors: ["Catalog asset must be a non-null object"] };
4073
+ }
4074
+ const item = asset;
4075
+ if (typeof item.app_scope !== "string" || item.app_scope.trim() === "") {
4076
+ errors.push("app_scope must be a non-empty string");
4077
+ }
4078
+ if (typeof item.category !== "string" || item.category.trim() === "") {
4079
+ errors.push("category must be a non-empty string");
4080
+ }
4081
+ if (typeof item.asset_key !== "string" || item.asset_key.trim() === "") {
4082
+ errors.push("asset_key must be a non-empty string");
4083
+ }
4084
+ if (typeof item.cdn_url !== "string" || !/^https?:\/\//i.test(item.cdn_url)) {
4085
+ errors.push("cdn_url must be a valid HTTP/HTTPS URL string");
4086
+ }
4087
+ if (typeof item.metadata !== "object" || item.metadata === null || Array.isArray(item.metadata)) {
4088
+ errors.push("metadata must be a JSON object");
4089
+ }
4090
+ return {
4091
+ valid: errors.length === 0,
4092
+ errors
4093
+ };
4094
+ }
4095
+ function formatCatalogAssetKey(appScope, category, identifier) {
4096
+ const sanitize = (s) => s.trim().toLowerCase().replace(/[^a-z0-9_-]/g, "-");
4097
+ return `${sanitize(appScope)}-${sanitize(category)}-${sanitize(identifier)}`.replace(/-+/g, "-");
4098
+ }
4099
+
4100
+ // src/catalog/loader.ts
4101
+ function filterCatalog(assets, filter) {
4102
+ let result = [...assets];
4103
+ if (filter.app_scope) {
4104
+ const scopes = Array.isArray(filter.app_scope) ? filter.app_scope : [filter.app_scope];
4105
+ result = result.filter(
4106
+ (a) => scopes.includes(a.app_scope) || scopes.includes("all") || a.app_scope === "all"
4107
+ );
4108
+ }
4109
+ if (filter.category) {
4110
+ const categories = Array.isArray(filter.category) ? filter.category : [filter.category];
4111
+ result = result.filter((a) => categories.includes(a.category));
4112
+ }
4113
+ if (filter.asset_keys && filter.asset_keys.length > 0) {
4114
+ const keySet = new Set(filter.asset_keys);
4115
+ result = result.filter((a) => keySet.has(a.asset_key));
4116
+ }
4117
+ return result;
4118
+ }
4119
+ function filterCatalogByScope(assets, appScope) {
4120
+ return filterCatalog(assets, { app_scope: appScope });
4121
+ }
4122
+ function filterCatalogByCategory(assets, category) {
4123
+ return filterCatalog(assets, { category });
4124
+ }
4125
+ function createCatalogMap(assets) {
4126
+ const map = /* @__PURE__ */ new Map();
4127
+ for (const asset of assets) {
4128
+ map.set(asset.asset_key, asset);
4129
+ }
4130
+ return map;
4131
+ }
4132
+ async function loadCatalogAssets(options = {}) {
4133
+ const fallback = options.fallbackToSeed ?? true;
4134
+ if (options.supabaseClient) {
4135
+ try {
4136
+ const client = options.supabaseClient;
4137
+ const queryBuilder = typeof client.schema === "function" ? client.schema(CATALOG_SCHEMA_NAME).from(CATALOG_TABLE_NAME) : client.from(`${CATALOG_SCHEMA_NAME}.${CATALOG_TABLE_NAME}`);
4138
+ let query = queryBuilder.select("id, app_scope, category, asset_key, cdn_url, metadata, created_at");
4139
+ if (options.app_scope) {
4140
+ const requestedScopes = Array.isArray(options.app_scope) ? options.app_scope : [options.app_scope];
4141
+ if (!requestedScopes.includes("all")) {
4142
+ const scopesWithShared = Array.from(/* @__PURE__ */ new Set([...requestedScopes, "all"]));
4143
+ query = query.in("app_scope", scopesWithShared);
4144
+ }
4145
+ }
4146
+ if (options.category) {
4147
+ if (Array.isArray(options.category)) {
4148
+ query = query.in("category", options.category);
4149
+ } else {
4150
+ query = query.eq("category", options.category);
4151
+ }
4152
+ }
4153
+ if (options.asset_keys && options.asset_keys.length > 0) {
4154
+ query = query.in("asset_key", options.asset_keys);
4155
+ }
4156
+ const { data, error } = await query;
4157
+ if (error) {
4158
+ if (!fallback) throw error;
4159
+ return filterCatalog(SEED_CATALOG_ASSETS, options);
4160
+ }
4161
+ if (Array.isArray(data) && data.length > 0) {
4162
+ return data.filter(isCatalogAsset).map((row) => ({
4163
+ id: row.id,
4164
+ app_scope: row.app_scope,
4165
+ category: row.category,
4166
+ asset_key: row.asset_key,
4167
+ cdn_url: row.cdn_url,
4168
+ metadata: row.metadata || {},
4169
+ created_at: row.created_at
4170
+ }));
4171
+ }
4172
+ if (fallback) {
4173
+ return filterCatalog(SEED_CATALOG_ASSETS, options);
4174
+ }
4175
+ return [];
4176
+ } catch (err) {
4177
+ if (!fallback) throw err;
4178
+ return filterCatalog(SEED_CATALOG_ASSETS, options);
4179
+ }
4180
+ }
4181
+ return filterCatalog(SEED_CATALOG_ASSETS, options);
4182
+ }
4183
+
4184
+ // src/registry/resolvers.ts
4185
+ function resolveAssetPathWithOverrides(pack, assetPath, overrides, packOverrides, ext) {
4186
+ const cleanPack = pack.replace(/^\/+|\/+$/g, "").toLowerCase();
4187
+ const cleanPath = assetPath.replace(/^\/+/, "");
4188
+ const bareKey = cleanPath.replace(/\.[a-zA-Z0-9]+$/, "");
4189
+ if (overrides.has(bareKey)) {
4190
+ return overrides.get(bareKey).url;
4191
+ }
4192
+ if (overrides.has(cleanPath)) {
4193
+ return overrides.get(cleanPath).url;
4194
+ }
4195
+ const packOverride = packOverrides.get(cleanPack);
4196
+ if (packOverride) {
4197
+ if (typeof packOverride === "function") {
4198
+ return packOverride(cleanPath, ext);
4199
+ }
4200
+ const cleanBase = packOverride.replace(/\/+$/, "");
4201
+ const finalExt = ext ? ext.startsWith(".") ? ext.slice(1) : ext : /\.[a-zA-Z0-9]+$/.test(cleanPath) ? void 0 : "png";
4202
+ const targetPath = finalExt && !cleanPath.endsWith(`.${finalExt}`) ? `${cleanPath.replace(/\.[a-zA-Z0-9]+$/, "")}.${finalExt}` : cleanPath;
4203
+ return `${cleanBase}/${targetPath}`;
4204
+ }
4205
+ return getKenneyAssetUrl(pack, assetPath, ext);
4206
+ }
4207
+ function resolveCardUrlWithOverrides(cardKey, overrides, packOverrides, ext = "png") {
4208
+ const cleanKey = cardKey.replace(/^\/+|\/+$/g, "").replace(/\.[a-zA-Z0-9]+$/, "");
4209
+ if (overrides.has(cleanKey)) {
4210
+ return overrides.get(cleanKey).url;
4211
+ }
4212
+ return resolveAssetPathWithOverrides("cards", cleanKey, overrides, packOverrides, ext);
4213
+ }
4214
+ function resolveCharacterUrlWithOverrides(category, itemKey, overrides, packOverrides, ext = "png") {
4215
+ const cleanKey = itemKey.replace(/^\/+|\/+$/g, "").replace(/\.[a-zA-Z0-9]+$/, "");
4216
+ if (overrides.has(cleanKey)) {
4217
+ return overrides.get(cleanKey).url;
4218
+ }
4219
+ const pathWithCat = `${category}/${cleanKey}`;
4220
+ if (overrides.has(pathWithCat)) {
4221
+ return overrides.get(pathWithCat).url;
4222
+ }
4223
+ return resolveAssetPathWithOverrides(
4224
+ "modular-characters",
4225
+ pathWithCat,
4226
+ overrides,
4227
+ packOverrides,
4228
+ ext
4229
+ );
4230
+ }
4231
+ function resolveAudioUrlWithOverrides(soundName, overrides, packOverrides, ext = "ogg") {
4232
+ const cleanName = soundName.replace(/^\/+|\/+$/g, "").replace(/\.[a-zA-Z0-9]+$/, "");
4233
+ if (overrides.has(cleanName)) {
4234
+ return overrides.get(cleanName).url;
4235
+ }
4236
+ if (packOverrides.has("ui-pack/sounds")) {
4237
+ return resolveAssetPathWithOverrides("ui-pack/sounds", cleanName, overrides, packOverrides, ext);
4238
+ }
4239
+ return resolveAssetPathWithOverrides("ui-pack", `sounds/${cleanName}`, overrides, packOverrides, ext);
4240
+ }
4241
+ function resolveFrameWithOverrides(manifest, frameKey, overrides) {
4242
+ const cleanKey = frameKey.trim();
4243
+ const override = overrides.get(cleanKey);
4244
+ const baseFrame = getFrameCoordinates(manifest, cleanKey);
4245
+ if (!override || !override.frame && !override.anchor) {
4246
+ return baseFrame;
4247
+ }
4248
+ if (!baseFrame && !override.frame) {
4249
+ return void 0;
4250
+ }
4251
+ const mergedFrame = override.frame ?? baseFrame.frame;
4252
+ const mergedAnchor = override.anchor ?? baseFrame?.anchor;
4253
+ return {
4254
+ frame: mergedFrame,
4255
+ ...mergedAnchor ? { anchor: mergedAnchor } : {},
4256
+ trimmed: baseFrame?.trimmed ?? false,
4257
+ rotated: baseFrame?.rotated ?? false,
4258
+ ...baseFrame?.spriteSourceSize ? { spriteSourceSize: baseFrame.spriteSourceSize } : {},
4259
+ ...baseFrame?.sourceSize ? { sourceSize: baseFrame.sourceSize } : {}
4260
+ };
4261
+ }
4262
+ function resolveFlameDataWithOverrides(manifest, frameKey, overrides) {
4263
+ const frame = resolveFrameWithOverrides(manifest, frameKey, overrides);
4264
+ if (!frame) return null;
4265
+ return {
4266
+ srcPosition: [frame.frame.x, frame.frame.y],
4267
+ srcSize: [frame.frame.w, frame.frame.h],
4268
+ anchor: [frame.anchor?.ax ?? 0.5, frame.anchor?.ay ?? 0.5]
4269
+ };
4270
+ }
4271
+
4272
+ // src/registry/registry.ts
4273
+ var AssetRegistry = class {
4274
+ constructor() {
4275
+ this.overrides = /* @__PURE__ */ new Map();
4276
+ this.packOverrides = /* @__PURE__ */ new Map();
4277
+ this.listeners = /* @__PURE__ */ new Set();
4278
+ }
4279
+ registerOverride(key, override) {
4280
+ const cleanKey = key.trim();
4281
+ const entry = typeof override === "string" ? { url: override } : { ...override };
4282
+ this.overrides.set(cleanKey, entry);
4283
+ this.emit({
4284
+ type: "override_registered",
4285
+ keys: [cleanKey],
4286
+ timestamp: Date.now()
4287
+ });
4288
+ return this;
4289
+ }
4290
+ registerOverrides(overrides) {
4291
+ const affectedKeys = [];
4292
+ if (Array.isArray(overrides)) {
4293
+ for (const asset of overrides) {
4294
+ const cleanKey = asset.asset_key.trim();
4295
+ this.overrides.set(cleanKey, {
4296
+ url: asset.cdn_url,
4297
+ frame: asset.metadata?.frame,
4298
+ anchor: asset.metadata?.anchor,
4299
+ app_scope: asset.app_scope,
4300
+ category: asset.category,
4301
+ metadata: asset.metadata
4302
+ });
4303
+ affectedKeys.push(cleanKey);
4304
+ }
4305
+ } else {
4306
+ for (const [key, value] of Object.entries(overrides)) {
4307
+ const cleanKey = key.trim();
4308
+ this.overrides.set(
4309
+ cleanKey,
4310
+ typeof value === "string" ? { url: value } : { ...value }
4311
+ );
4312
+ affectedKeys.push(cleanKey);
4313
+ }
4314
+ }
4315
+ if (affectedKeys.length > 0) {
4316
+ this.emit({
4317
+ type: "override_registered",
4318
+ keys: affectedKeys,
4319
+ timestamp: Date.now()
4320
+ });
4321
+ }
4322
+ return this;
4323
+ }
4324
+ registerPackOverride(pack, cdnBaseOrResolver) {
4325
+ const cleanPack = pack.replace(/^\/+|\/+$/g, "").toLowerCase();
4326
+ this.packOverrides.set(cleanPack, cdnBaseOrResolver);
4327
+ this.emit({
4328
+ type: "pack_registered",
4329
+ pack: cleanPack,
4330
+ timestamp: Date.now()
4331
+ });
4332
+ return this;
4333
+ }
4334
+ removePackOverride(pack) {
4335
+ const cleanPack = pack.replace(/^\/+|\/+$/g, "").toLowerCase();
4336
+ const removed = this.packOverrides.delete(cleanPack);
4337
+ if (removed) {
4338
+ this.emit({
4339
+ type: "pack_removed",
4340
+ pack: cleanPack,
4341
+ timestamp: Date.now()
4342
+ });
4343
+ }
4344
+ return removed;
4345
+ }
4346
+ loadCatalog(assets, appScope) {
4347
+ const filtered = appScope ? assets.filter((a) => a.app_scope === appScope || a.app_scope === "all") : assets;
4348
+ this.registerOverrides(filtered);
4349
+ this.emit({
4350
+ type: "catalog_loaded",
4351
+ app_scope: appScope,
4352
+ keys: filtered.map((f) => f.asset_key),
4353
+ timestamp: Date.now()
4354
+ });
4355
+ return this;
4356
+ }
4357
+ hasOverride(key) {
4358
+ return this.overrides.has(key.trim());
4359
+ }
4360
+ getOverride(key) {
4361
+ return this.overrides.get(key.trim());
4362
+ }
4363
+ removeOverride(key) {
4364
+ const cleanKey = key.trim();
4365
+ const existed = this.overrides.delete(cleanKey);
4366
+ if (existed) {
4367
+ this.emit({
4368
+ type: "override_removed",
4369
+ keys: [cleanKey],
4370
+ timestamp: Date.now()
4371
+ });
4372
+ }
4373
+ return existed;
4374
+ }
4375
+ clearOverrides() {
4376
+ this.overrides.clear();
4377
+ this.emit({ type: "cleared", timestamp: Date.now() });
4378
+ }
4379
+ clearPackOverrides() {
4380
+ this.packOverrides.clear();
4381
+ this.emit({ type: "cleared", timestamp: Date.now() });
4382
+ }
4383
+ reset() {
4384
+ this.overrides.clear();
4385
+ this.packOverrides.clear();
4386
+ this.emit({ type: "reset", timestamp: Date.now() });
4387
+ }
4388
+ resolveUrl(key, defaultUrl = "") {
4389
+ const override = this.overrides.get(key.trim());
4390
+ return override ? override.url : defaultUrl;
4391
+ }
4392
+ resolveAssetUrl(pack, assetPath, ext) {
4393
+ return resolveAssetPathWithOverrides(pack, assetPath, this.overrides, this.packOverrides, ext);
4394
+ }
4395
+ resolveCardUrl(cardKey, ext = "png") {
4396
+ return resolveCardUrlWithOverrides(cardKey, this.overrides, this.packOverrides, ext);
4397
+ }
4398
+ resolveCharacterUrl(category, itemKey, ext = "png") {
4399
+ return resolveCharacterUrlWithOverrides(category, itemKey, this.overrides, this.packOverrides, ext);
4400
+ }
4401
+ resolveAudioUrl(soundName, ext = "ogg") {
4402
+ return resolveAudioUrlWithOverrides(soundName, this.overrides, this.packOverrides, ext);
4403
+ }
4404
+ resolveFrame(manifest, frameKey) {
4405
+ return resolveFrameWithOverrides(manifest, frameKey, this.overrides);
4406
+ }
4407
+ resolveFlameSpriteData(manifest, frameKey) {
4408
+ return resolveFlameDataWithOverrides(manifest, frameKey, this.overrides);
4409
+ }
4410
+ subscribe(listener) {
4411
+ this.listeners.add(listener);
4412
+ return () => {
4413
+ this.listeners.delete(listener);
4414
+ };
4415
+ }
4416
+ onSwap(listener) {
4417
+ return this.subscribe(listener);
4418
+ }
4419
+ getSnapshot() {
4420
+ return {
4421
+ activeOverridesCount: this.overrides.size,
4422
+ activePacksCount: this.packOverrides.size,
4423
+ overriddenKeys: Array.from(this.overrides.keys()),
4424
+ overriddenPacks: Array.from(this.packOverrides.keys())
4425
+ };
4426
+ }
4427
+ emit(event) {
4428
+ for (const listener of this.listeners) {
4429
+ try {
4430
+ listener(event);
4431
+ } catch (err) {
4432
+ console.error("[AssetRegistry] Listener error:", err);
4433
+ }
4434
+ }
4435
+ }
4436
+ };
4437
+ function createAssetRegistry() {
4438
+ return new AssetRegistry();
4439
+ }
4440
+ var DEFAULT_REGISTRY_SYMBOL = /* @__PURE__ */ Symbol.for("@digitalcanopy/assets/defaultRegistry");
4441
+ function getDefaultAssetRegistry() {
4442
+ const globalScope = globalThis;
4443
+ if (!globalScope[DEFAULT_REGISTRY_SYMBOL]) {
4444
+ globalScope[DEFAULT_REGISTRY_SYMBOL] = createAssetRegistry();
4445
+ }
4446
+ return globalScope[DEFAULT_REGISTRY_SYMBOL];
4447
+ }
4448
+ var assetRegistry = getDefaultAssetRegistry();
4449
+ // Annotate the CommonJS export names for ESM import in node:
4450
+ 0 && (module.exports = {
4451
+ AssetRegistry,
4452
+ CATALOG_ASSETS_SCHEMA_SQL,
4453
+ CATALOG_FULL_TABLE_NAME,
4454
+ CATALOG_SCHEMA_NAME,
4455
+ CATALOG_TABLE_NAME,
4456
+ CDN_BASE_URL,
4457
+ ISOMETRIC_TILES,
4458
+ KENNEY_CDN_BASE,
4459
+ MODULAR_CHARACTERS,
4460
+ PLAYING_CARDS,
4461
+ SEED_CATALOG_ASSETS,
4462
+ UI_SPRITES,
4463
+ assetRegistry,
4464
+ createAssetRegistry,
4465
+ createCatalogMap,
4466
+ filterCatalog,
4467
+ filterCatalogByCategory,
4468
+ filterCatalogByScope,
4469
+ formatCatalogAssetKey,
4470
+ getFrameCoordinates,
4471
+ getKenneyAssetUrl,
4472
+ getKenneyAudioUrl,
4473
+ getKenneyCardUrl,
4474
+ getKenneyCharacterUrl,
4475
+ isCatalogAsset,
4476
+ isometricTilesAtlas,
4477
+ loadCatalogAssets,
4478
+ modularCharactersAtlas,
4479
+ playingCardsAtlas,
4480
+ toFlameSpriteData,
4481
+ uiSpritesAtlas,
4482
+ validateCatalogAsset
4483
+ });