@hytopia.com/examples 1.0.11 → 1.0.13

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 (67) hide show
  1. package/frontiers-rpg-game/assets/icons/items/leather-boots.png +0 -0
  2. package/frontiers-rpg-game/assets/icons/items/leather-bracers.png +0 -0
  3. package/frontiers-rpg-game/assets/icons/items/leather-helmet.png +0 -0
  4. package/frontiers-rpg-game/assets/icons/items/leather-leggings.png +0 -0
  5. package/frontiers-rpg-game/assets/icons/items/leather-vest.png +0 -0
  6. package/frontiers-rpg-game/assets/icons/items/spiked-club.png +0 -0
  7. package/frontiers-rpg-game/assets/icons/skills/crafting.png +0 -0
  8. package/frontiers-rpg-game/assets/models/weapons/.optimized/mace/baseColor.png +0 -0
  9. package/frontiers-rpg-game/assets/models/weapons/.optimized/mace/mace-named-nodes.bin +0 -0
  10. package/frontiers-rpg-game/assets/models/weapons/.optimized/mace/mace-named-nodes.gltf +653 -0
  11. package/frontiers-rpg-game/assets/models/weapons/.optimized/mace/mace.bin +0 -0
  12. package/frontiers-rpg-game/assets/models/weapons/.optimized/mace/mace.gltf +135 -0
  13. package/frontiers-rpg-game/assets/models/weapons/.optimized/mace/mace.gltf.md5 +1 -0
  14. package/frontiers-rpg-game/assets/models/weapons/.optimized/spiked-club/baseColor.png +0 -0
  15. package/frontiers-rpg-game/assets/models/weapons/.optimized/spiked-club/spiked-club-named-nodes.bin +0 -0
  16. package/frontiers-rpg-game/assets/models/weapons/.optimized/spiked-club/spiked-club-named-nodes.gltf +840 -0
  17. package/frontiers-rpg-game/assets/models/weapons/.optimized/spiked-club/spiked-club.bin +0 -0
  18. package/frontiers-rpg-game/assets/models/weapons/.optimized/spiked-club/spiked-club.gltf +141 -0
  19. package/frontiers-rpg-game/assets/models/weapons/.optimized/spiked-club/spiked-club.gltf.md5 +1 -0
  20. package/frontiers-rpg-game/assets/models/weapons/mace.gltf +1 -0
  21. package/frontiers-rpg-game/assets/ui/build.js +2 -0
  22. package/frontiers-rpg-game/assets/ui/index.html +1328 -64
  23. package/frontiers-rpg-game/assets/ui/menus/crafting.html +976 -0
  24. package/frontiers-rpg-game/assets/ui/menus/quests.html +70 -2
  25. package/frontiers-rpg-game/assets/ui/shared/item-stats.html +224 -0
  26. package/frontiers-rpg-game/assets/ui/shared/item-tooltips.html +72 -81
  27. package/frontiers-rpg-game/dev/persistence/player-player-1.json +121 -12
  28. package/frontiers-rpg-game/src/GamePlayer.ts +54 -0
  29. package/frontiers-rpg-game/src/GamePlayerEntity.ts +9 -4
  30. package/frontiers-rpg-game/src/config.ts +7 -0
  31. package/frontiers-rpg-game/src/entities/BaseCraftingEntity.ts +115 -0
  32. package/frontiers-rpg-game/src/entities/enemies/RatkinBruteEntity.ts +2 -0
  33. package/frontiers-rpg-game/src/entities/enemies/RatkinRangerEntity.ts +2 -0
  34. package/frontiers-rpg-game/src/entities/enemies/RatkinSpellcasterEntity.ts +2 -0
  35. package/frontiers-rpg-game/src/entities/enemies/RatkinWarriorEntity.ts +2 -0
  36. package/frontiers-rpg-game/src/entities/enemies/TaintedRatkinBruteEntity.ts +2 -0
  37. package/frontiers-rpg-game/src/entities/enemies/TaintedRatkinRangerEntity.ts +2 -1
  38. package/frontiers-rpg-game/src/entities/enemies/TaintedRatkinSpellcasterEntity.ts +2 -0
  39. package/frontiers-rpg-game/src/entities/enemies/TaintedRatkinWarriorEntity.ts +2 -0
  40. package/frontiers-rpg-game/src/entities/forageables/DecayingPileEntity.ts +2 -2
  41. package/frontiers-rpg-game/src/entities/forageables/RottenLogEntity.ts +2 -2
  42. package/frontiers-rpg-game/src/items/ItemClasses.ts +14 -2
  43. package/frontiers-rpg-game/src/items/materials/RawHideItem.ts +10 -0
  44. package/frontiers-rpg-game/src/items/weapons/DullSwordItem.ts +5 -4
  45. package/frontiers-rpg-game/src/items/weapons/IronDaggerItem.ts +1 -1
  46. package/frontiers-rpg-game/src/items/weapons/IronLongSwordItem.ts +5 -4
  47. package/frontiers-rpg-game/src/items/weapons/SpikedClubItem.ts +26 -0
  48. package/frontiers-rpg-game/src/items/weapons/TrainingSwordItem.ts +5 -4
  49. package/frontiers-rpg-game/src/items/wearables/LeatherBootsItem.ts +14 -0
  50. package/frontiers-rpg-game/src/items/wearables/LeatherBracersItem.ts +14 -0
  51. package/frontiers-rpg-game/src/items/wearables/LeatherHelmetItem.ts +14 -0
  52. package/frontiers-rpg-game/src/items/wearables/LeatherLeggingsItem.ts +14 -0
  53. package/frontiers-rpg-game/src/items/wearables/LeatherVestItem.ts +14 -0
  54. package/frontiers-rpg-game/src/quests/BaseQuest.ts +1 -2
  55. package/frontiers-rpg-game/src/quests/QuestClasses.ts +2 -0
  56. package/frontiers-rpg-game/src/quests/side/FungalForagingQuest.ts +1 -23
  57. package/frontiers-rpg-game/src/quests/side/HammersAndCraftingQuest.ts +139 -0
  58. package/frontiers-rpg-game/src/regions/stalkhaven/StalkhavenRegion.ts +2 -0
  59. package/frontiers-rpg-game/src/regions/stalkhaven/npcs/BlacksmithArdenEntity.ts +114 -0
  60. package/frontiers-rpg-game/src/systems/QuestLog.ts +2 -5
  61. package/package.json +1 -1
  62. package/frontiers-rpg-game/dev/persistence/player-player-2.json +0 -31
  63. package/frontiers-rpg-game/dev/persistence/player-player-3.json +0 -25
  64. package/frontiers-rpg-game/dev/persistence/player-player-4.json +0 -31
  65. package/frontiers-rpg-game/src/items/materials/MonsterHideItem.ts +0 -10
  66. /package/frontiers-rpg-game/assets/icons/items/{monster-hide.png → raw-hide.png} +0 -0
  67. /package/frontiers-rpg-game/assets/models/weapons/{club.gltf → spiked-club.gltf} +0 -0
@@ -0,0 +1,653 @@
1
+ {
2
+ "asset": {
3
+ "generator": "glTF-Transform v4.1.3",
4
+ "version": "2.0"
5
+ },
6
+ "accessors": [
7
+ {
8
+ "type": "SCALAR",
9
+ "componentType": 5123,
10
+ "count": 36,
11
+ "bufferView": 0,
12
+ "byteOffset": 0
13
+ },
14
+ {
15
+ "type": "VEC3",
16
+ "componentType": 5126,
17
+ "count": 24,
18
+ "max": [
19
+ 0.125,
20
+ 0.375,
21
+ 0.125
22
+ ],
23
+ "min": [
24
+ -5.551115123125783e-17,
25
+ -0.125,
26
+ 0
27
+ ],
28
+ "bufferView": 1,
29
+ "byteOffset": 0
30
+ },
31
+ {
32
+ "type": "VEC3",
33
+ "componentType": 5126,
34
+ "count": 24,
35
+ "bufferView": 1,
36
+ "byteOffset": 12
37
+ },
38
+ {
39
+ "type": "VEC2",
40
+ "componentType": 5126,
41
+ "count": 24,
42
+ "bufferView": 1,
43
+ "byteOffset": 24
44
+ },
45
+ {
46
+ "type": "VEC3",
47
+ "componentType": 5126,
48
+ "count": 24,
49
+ "max": [
50
+ 0.09375,
51
+ 0.09375,
52
+ 0.09375
53
+ ],
54
+ "min": [
55
+ -0.09375,
56
+ -0.09375,
57
+ -0.09375
58
+ ],
59
+ "bufferView": 2,
60
+ "byteOffset": 0
61
+ },
62
+ {
63
+ "type": "VEC2",
64
+ "componentType": 5126,
65
+ "count": 24,
66
+ "bufferView": 2,
67
+ "byteOffset": 12
68
+ },
69
+ {
70
+ "type": "VEC3",
71
+ "componentType": 5126,
72
+ "count": 24,
73
+ "max": [
74
+ 0.15625,
75
+ 0.75,
76
+ 0.15625
77
+ ],
78
+ "min": [
79
+ -0.03125,
80
+ 0.625,
81
+ -0.03125
82
+ ],
83
+ "bufferView": 3,
84
+ "byteOffset": 0
85
+ },
86
+ {
87
+ "type": "VEC2",
88
+ "componentType": 5126,
89
+ "count": 24,
90
+ "bufferView": 3,
91
+ "byteOffset": 12
92
+ },
93
+ {
94
+ "type": "VEC3",
95
+ "componentType": 5126,
96
+ "count": 24,
97
+ "max": [
98
+ 0.125,
99
+ 1.1875,
100
+ 0.125
101
+ ],
102
+ "min": [
103
+ -5.551115123125783e-17,
104
+ 0.625,
105
+ 0
106
+ ],
107
+ "bufferView": 4,
108
+ "byteOffset": 0
109
+ },
110
+ {
111
+ "type": "VEC2",
112
+ "componentType": 5126,
113
+ "count": 24,
114
+ "bufferView": 4,
115
+ "byteOffset": 12
116
+ },
117
+ {
118
+ "type": "VEC2",
119
+ "componentType": 5126,
120
+ "count": 24,
121
+ "bufferView": 5,
122
+ "byteOffset": 0
123
+ },
124
+ {
125
+ "type": "VEC3",
126
+ "componentType": 5126,
127
+ "count": 24,
128
+ "max": [
129
+ 0.25,
130
+ 1.75,
131
+ 0.25
132
+ ],
133
+ "min": [
134
+ -0.125,
135
+ 1.375,
136
+ -0.125
137
+ ],
138
+ "bufferView": 6,
139
+ "byteOffset": 0
140
+ },
141
+ {
142
+ "type": "VEC2",
143
+ "componentType": 5126,
144
+ "count": 24,
145
+ "bufferView": 6,
146
+ "byteOffset": 12
147
+ },
148
+ {
149
+ "type": "VEC3",
150
+ "componentType": 5126,
151
+ "count": 24,
152
+ "max": [
153
+ 0.03125,
154
+ 0.0625,
155
+ 0.0625
156
+ ],
157
+ "min": [
158
+ -0.03125,
159
+ -0.0625,
160
+ -0.0625
161
+ ],
162
+ "bufferView": 7,
163
+ "byteOffset": 0
164
+ },
165
+ {
166
+ "type": "VEC2",
167
+ "componentType": 5126,
168
+ "count": 24,
169
+ "bufferView": 7,
170
+ "byteOffset": 12
171
+ },
172
+ {
173
+ "type": "VEC2",
174
+ "componentType": 5126,
175
+ "count": 24,
176
+ "bufferView": 8,
177
+ "byteOffset": 0
178
+ },
179
+ {
180
+ "type": "VEC3",
181
+ "componentType": 5126,
182
+ "count": 24,
183
+ "max": [
184
+ 0.0625,
185
+ 0.0625,
186
+ 0.03125
187
+ ],
188
+ "min": [
189
+ -0.0625,
190
+ -0.0625,
191
+ -0.03125
192
+ ],
193
+ "bufferView": 9,
194
+ "byteOffset": 0
195
+ },
196
+ {
197
+ "type": "VEC2",
198
+ "componentType": 5126,
199
+ "count": 24,
200
+ "bufferView": 9,
201
+ "byteOffset": 12
202
+ },
203
+ {
204
+ "type": "VEC2",
205
+ "componentType": 5126,
206
+ "count": 24,
207
+ "bufferView": 10,
208
+ "byteOffset": 0
209
+ },
210
+ {
211
+ "type": "VEC2",
212
+ "componentType": 5126,
213
+ "count": 24,
214
+ "bufferView": 11,
215
+ "byteOffset": 0
216
+ }
217
+ ],
218
+ "bufferViews": [
219
+ {
220
+ "buffer": 0,
221
+ "byteOffset": 0,
222
+ "byteLength": 72,
223
+ "target": 34963
224
+ },
225
+ {
226
+ "buffer": 0,
227
+ "byteOffset": 72,
228
+ "byteLength": 768,
229
+ "byteStride": 32,
230
+ "target": 34962
231
+ },
232
+ {
233
+ "buffer": 0,
234
+ "byteOffset": 840,
235
+ "byteLength": 480,
236
+ "byteStride": 20,
237
+ "target": 34962
238
+ },
239
+ {
240
+ "buffer": 0,
241
+ "byteOffset": 1320,
242
+ "byteLength": 480,
243
+ "byteStride": 20,
244
+ "target": 34962
245
+ },
246
+ {
247
+ "buffer": 0,
248
+ "byteOffset": 1800,
249
+ "byteLength": 480,
250
+ "byteStride": 20,
251
+ "target": 34962
252
+ },
253
+ {
254
+ "buffer": 0,
255
+ "byteOffset": 2280,
256
+ "byteLength": 192,
257
+ "byteStride": 8,
258
+ "target": 34962
259
+ },
260
+ {
261
+ "buffer": 0,
262
+ "byteOffset": 2472,
263
+ "byteLength": 480,
264
+ "byteStride": 20,
265
+ "target": 34962
266
+ },
267
+ {
268
+ "buffer": 0,
269
+ "byteOffset": 2952,
270
+ "byteLength": 480,
271
+ "byteStride": 20,
272
+ "target": 34962
273
+ },
274
+ {
275
+ "buffer": 0,
276
+ "byteOffset": 3432,
277
+ "byteLength": 192,
278
+ "byteStride": 8,
279
+ "target": 34962
280
+ },
281
+ {
282
+ "buffer": 0,
283
+ "byteOffset": 3624,
284
+ "byteLength": 480,
285
+ "byteStride": 20,
286
+ "target": 34962
287
+ },
288
+ {
289
+ "buffer": 0,
290
+ "byteOffset": 4104,
291
+ "byteLength": 192,
292
+ "byteStride": 8,
293
+ "target": 34962
294
+ },
295
+ {
296
+ "buffer": 0,
297
+ "byteOffset": 4296,
298
+ "byteLength": 192,
299
+ "byteStride": 8,
300
+ "target": 34962
301
+ }
302
+ ],
303
+ "samplers": [
304
+ {
305
+ "magFilter": 9728,
306
+ "minFilter": 9728,
307
+ "wrapS": 33071,
308
+ "wrapT": 33071
309
+ }
310
+ ],
311
+ "textures": [
312
+ {
313
+ "source": 0,
314
+ "sampler": 0
315
+ }
316
+ ],
317
+ "images": [
318
+ {
319
+ "mimeType": "image/png",
320
+ "uri": "baseColor.png"
321
+ }
322
+ ],
323
+ "buffers": [
324
+ {
325
+ "uri": "mace-named-nodes.bin",
326
+ "byteLength": 4488
327
+ }
328
+ ],
329
+ "materials": [
330
+ {
331
+ "alphaMode": "MASK",
332
+ "alphaCutoff": 0.05,
333
+ "pbrMetallicRoughness": {
334
+ "metallicFactor": 0,
335
+ "baseColorTexture": {
336
+ "index": 0
337
+ }
338
+ }
339
+ }
340
+ ],
341
+ "meshes": [
342
+ {
343
+ "primitives": [
344
+ {
345
+ "attributes": {
346
+ "POSITION": 1,
347
+ "NORMAL": 2,
348
+ "TEXCOORD_0": 3
349
+ },
350
+ "mode": 4,
351
+ "material": 0,
352
+ "indices": 0
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ "primitives": [
358
+ {
359
+ "attributes": {
360
+ "POSITION": 4,
361
+ "TEXCOORD_0": 5,
362
+ "NORMAL": 2
363
+ },
364
+ "mode": 4,
365
+ "material": 0,
366
+ "indices": 0
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "primitives": [
372
+ {
373
+ "attributes": {
374
+ "POSITION": 6,
375
+ "TEXCOORD_0": 7,
376
+ "NORMAL": 2
377
+ },
378
+ "mode": 4,
379
+ "material": 0,
380
+ "indices": 0
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "primitives": [
386
+ {
387
+ "attributes": {
388
+ "POSITION": 8,
389
+ "TEXCOORD_0": 9,
390
+ "NORMAL": 2
391
+ },
392
+ "mode": 4,
393
+ "material": 0,
394
+ "indices": 0
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "primitives": [
400
+ {
401
+ "attributes": {
402
+ "TEXCOORD_0": 10,
403
+ "POSITION": 4,
404
+ "NORMAL": 2
405
+ },
406
+ "mode": 4,
407
+ "material": 0,
408
+ "indices": 0
409
+ }
410
+ ]
411
+ },
412
+ {
413
+ "primitives": [
414
+ {
415
+ "attributes": {
416
+ "POSITION": 11,
417
+ "TEXCOORD_0": 12,
418
+ "NORMAL": 2
419
+ },
420
+ "mode": 4,
421
+ "material": 0,
422
+ "indices": 0
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ "primitives": [
428
+ {
429
+ "attributes": {
430
+ "POSITION": 13,
431
+ "TEXCOORD_0": 14,
432
+ "NORMAL": 2
433
+ },
434
+ "mode": 4,
435
+ "material": 0,
436
+ "indices": 0
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "primitives": [
442
+ {
443
+ "attributes": {
444
+ "TEXCOORD_0": 15,
445
+ "POSITION": 13,
446
+ "NORMAL": 2
447
+ },
448
+ "mode": 4,
449
+ "material": 0,
450
+ "indices": 0
451
+ }
452
+ ]
453
+ },
454
+ {
455
+ "primitives": [
456
+ {
457
+ "attributes": {
458
+ "POSITION": 16,
459
+ "TEXCOORD_0": 17,
460
+ "NORMAL": 2
461
+ },
462
+ "mode": 4,
463
+ "material": 0,
464
+ "indices": 0
465
+ }
466
+ ]
467
+ },
468
+ {
469
+ "primitives": [
470
+ {
471
+ "attributes": {
472
+ "TEXCOORD_0": 18,
473
+ "POSITION": 16,
474
+ "NORMAL": 2
475
+ },
476
+ "mode": 4,
477
+ "material": 0,
478
+ "indices": 0
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ "primitives": [
484
+ {
485
+ "attributes": {
486
+ "TEXCOORD_0": 19,
487
+ "POSITION": 16,
488
+ "NORMAL": 2
489
+ },
490
+ "mode": 4,
491
+ "material": 0,
492
+ "indices": 0
493
+ }
494
+ ]
495
+ }
496
+ ],
497
+ "nodes": [
498
+ {
499
+ "name": "cube",
500
+ "translation": [
501
+ 0.43702625,
502
+ -0.46875,
503
+ 0.4375
504
+ ],
505
+ "mesh": 0
506
+ },
507
+ {
508
+ "name": "cube",
509
+ "translation": [
510
+ 0.49952625,
511
+ -0.609375,
512
+ 0.5
513
+ ],
514
+ "rotation": [
515
+ 0,
516
+ 0,
517
+ 0.3826834323650898,
518
+ 0.9238795325112867
519
+ ],
520
+ "mesh": 1
521
+ },
522
+ {
523
+ "name": "cube",
524
+ "translation": [
525
+ 0.43702625,
526
+ -0.71875,
527
+ 0.4375
528
+ ],
529
+ "mesh": 2
530
+ },
531
+ {
532
+ "name": "cube",
533
+ "translation": [
534
+ 0.43702625,
535
+ -0.59375,
536
+ 0.4375
537
+ ],
538
+ "mesh": 3
539
+ },
540
+ {
541
+ "name": "cube",
542
+ "translation": [
543
+ 0.49952625,
544
+ 0.6875,
545
+ 0.5
546
+ ],
547
+ "mesh": 4
548
+ },
549
+ {
550
+ "name": "cube",
551
+ "translation": [
552
+ 0.43702625,
553
+ -0.59375,
554
+ 0.4375
555
+ ],
556
+ "mesh": 5
557
+ },
558
+ {
559
+ "name": "cube",
560
+ "translation": [
561
+ 0.5,
562
+ 0.96875,
563
+ 0.6875
564
+ ],
565
+ "rotation": [
566
+ 0.3826834323650898,
567
+ 0,
568
+ 0,
569
+ 0.9238795325112867
570
+ ],
571
+ "mesh": 6
572
+ },
573
+ {
574
+ "name": "cube",
575
+ "translation": [
576
+ 0.5,
577
+ 0.96875,
578
+ 0.3125
579
+ ],
580
+ "rotation": [
581
+ -0.3826834323650898,
582
+ 0,
583
+ 0,
584
+ 0.9238795325112867
585
+ ],
586
+ "mesh": 7
587
+ },
588
+ {
589
+ "name": "cube",
590
+ "translation": [
591
+ 0.5,
592
+ 1.15625,
593
+ 0.5
594
+ ],
595
+ "rotation": [
596
+ 0,
597
+ 0,
598
+ 0.3826834323650898,
599
+ 0.9238795325112867
600
+ ],
601
+ "mesh": 8
602
+ },
603
+ {
604
+ "name": "cube",
605
+ "translation": [
606
+ 0.3125,
607
+ 0.96875,
608
+ 0.5
609
+ ],
610
+ "rotation": [
611
+ 0,
612
+ 0,
613
+ 0.3826834323650898,
614
+ 0.9238795325112867
615
+ ],
616
+ "mesh": 9
617
+ },
618
+ {
619
+ "name": "cube",
620
+ "translation": [
621
+ 0.6875,
622
+ 0.96875,
623
+ 0.5
624
+ ],
625
+ "rotation": [
626
+ 0,
627
+ 0,
628
+ -0.3826834323650898,
629
+ 0.9238795325112867
630
+ ],
631
+ "mesh": 10
632
+ }
633
+ ],
634
+ "scenes": [
635
+ {
636
+ "name": "blockbench_export",
637
+ "nodes": [
638
+ 0,
639
+ 1,
640
+ 2,
641
+ 3,
642
+ 4,
643
+ 5,
644
+ 6,
645
+ 7,
646
+ 8,
647
+ 9,
648
+ 10
649
+ ]
650
+ }
651
+ ],
652
+ "scene": 0
653
+ }