@zylem/game-lib 0.7.0 → 0.8.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 (95) hide show
  1. package/README.md +15 -1
  2. package/dist/actions.d.ts +71 -8
  3. package/dist/actions.js +1 -1
  4. package/dist/api/game-lib.api.json +54074 -0
  5. package/dist/api/game-lib.api.md +4544 -0
  6. package/dist/api/game-lib.d.ts +8258 -0
  7. package/dist/api/game-lib.typedoc.json +345421 -0
  8. package/dist/audio.js +1 -1
  9. package/dist/{base-node-life-cycle-CnJ-7zX-.d.ts → base-node-life-cycle-D2NuN1VB.d.ts} +12 -4
  10. package/dist/behavior.d.ts +2 -3
  11. package/dist/behavior.js +1 -1
  12. package/dist/blueprints-TbGY-h53.d.ts +162 -0
  13. package/dist/chunk-7FR5JSQ2.js +1 -0
  14. package/dist/chunk-7GYFZKK7.js +1 -0
  15. package/dist/chunk-7WRQ2UAN.js +1 -0
  16. package/dist/chunk-BH53MBAZ.js +1 -0
  17. package/dist/chunk-BIGH6D34.js +0 -0
  18. package/dist/chunk-CM5YRNBJ.js +19 -0
  19. package/dist/chunk-COM6HJ2L.js +1 -0
  20. package/dist/chunk-D2PATZCC.js +1 -0
  21. package/dist/chunk-DFLI7ICU.js +0 -0
  22. package/dist/chunk-E3UBSUPX.js +1 -0
  23. package/dist/chunk-FKIKN7RP.js +24 -0
  24. package/dist/chunk-G4HONLWC.js +1 -0
  25. package/dist/chunk-IKWE2W6L.js +1 -0
  26. package/dist/chunk-IPWUDOV5.js +1 -0
  27. package/dist/chunk-JEHFHUH4.js +0 -0
  28. package/dist/chunk-JNKPTL77.js +1 -0
  29. package/dist/chunk-JQKS42G4.js +1 -0
  30. package/dist/chunk-M3XNO56P.js +1 -0
  31. package/dist/chunk-ORIDWL3T.js +0 -0
  32. package/dist/chunk-QB3NL7VQ.js +1 -0
  33. package/dist/chunk-TAUWDQZF.js +9 -0
  34. package/dist/chunk-VS2D4B3W.js +1 -0
  35. package/dist/chunk-WQ3WMMZD.js +1 -0
  36. package/dist/chunk-XK63E4SX.js +1 -0
  37. package/dist/chunk-XNDS4YFR.js +1 -0
  38. package/dist/chunk-XNHVRFAK.js +1 -0
  39. package/dist/chunk-ZRT3ZQVH.js +1 -0
  40. package/dist/collision-builder-jF-toPIl.d.ts +38 -0
  41. package/dist/core.d.ts +45 -30
  42. package/dist/core.js +1 -24
  43. package/dist/debug-state-BPT6jEog.d.ts +17 -0
  44. package/dist/debug.d.ts +71 -19
  45. package/dist/debug.js +1 -1
  46. package/dist/{default-controls-BGc61yYl.d.ts → default-controls-0-vCnli7.d.ts} +3 -3
  47. package/dist/{entity-DNkYKfdp.d.ts → entity-BdSI8CL3.d.ts} +63 -444
  48. package/dist/entity-DZbFQ1Wg.d.ts +28 -0
  49. package/dist/{entity-type-map-C94h2TDW.d.ts → entity-type-map-Bd69SpAS.d.ts} +153 -6
  50. package/dist/entity.d.ts +11 -8
  51. package/dist/entity.js +1 -1
  52. package/dist/events.d.ts +10 -1
  53. package/dist/events.js +1 -1
  54. package/dist/{game-Cuj5gy7U.d.ts → game-C1FHVqXl.d.ts} +429 -133
  55. package/dist/game-default-QHROHW2O.js +1 -0
  56. package/dist/{game-interfaces-tfpM5NBk.d.ts → game-interfaces-mchNYSZE.d.ts} +2 -2
  57. package/dist/globals.d.ts +12 -1
  58. package/dist/globals.js +1 -1
  59. package/dist/graphics.d.ts +16 -46
  60. package/dist/graphics.js +1 -1
  61. package/dist/input-ui.d.ts +5 -4
  62. package/dist/input-ui.js +1 -1
  63. package/dist/input.d.ts +4 -3
  64. package/dist/input.js +1 -1
  65. package/dist/{material-Wz83vTTp.d.ts → material-9vJ6SZaI.d.ts} +25 -50
  66. package/dist/public.d.ts +38 -0
  67. package/dist/public.js +1 -0
  68. package/dist/runtime.d.ts +7 -381
  69. package/dist/runtime.js +1 -1
  70. package/dist/schema/entity.schema.json +244 -0
  71. package/dist/schema/game-config.schema.json +625 -0
  72. package/dist/schema/input-config.schema.json +499 -0
  73. package/dist/schema/stage-config.schema.json +93 -0
  74. package/dist/schema/stage.schema.json +271 -0
  75. package/dist/schema.d.ts +538 -0
  76. package/dist/schema.js +1 -0
  77. package/dist/stage-transition-CmGpV4tc.d.ts +46 -0
  78. package/dist/vector-CiSHbivc.d.ts +133 -0
  79. package/dist/web-components.d.ts +15 -12
  80. package/dist/web-components.js +1 -9
  81. package/dist/{zylem-stage-runtime-Cs-UDEVU.d.ts → zylem-camera-C3bn6BTI.d.ts} +62 -264
  82. package/package.json +28 -20
  83. package/dist/chunk-73VZQZUL.js +0 -1
  84. package/dist/chunk-A34ZG3L4.js +0 -1
  85. package/dist/chunk-CDPY4VOQ.js +0 -1
  86. package/dist/chunk-DR6XXZE7.js +0 -19
  87. package/dist/chunk-FM5TBEPO.js +0 -1
  88. package/dist/chunk-G2IIMSUH.js +0 -1
  89. package/dist/chunk-NIH5CONO.js +0 -1
  90. package/dist/chunk-ONWXGBWB.js +0 -1
  91. package/dist/chunk-QEDQDR27.js +0 -1
  92. package/dist/chunk-WKHW2QO2.js +0 -1
  93. package/dist/chunk-YHKXQ2ZN.js +0 -1
  94. package/dist/game-default-PZLLHYL7.js +0 -1
  95. package/dist/world-C9zdyl5d.d.ts +0 -103
@@ -0,0 +1,271 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "StageJson",
4
+ "title": "StageJson",
5
+ "additionalProperties": false,
6
+ "type": "object",
7
+ "properties": {
8
+ "id": {
9
+ "type": "string"
10
+ },
11
+ "name": {
12
+ "type": "string"
13
+ },
14
+ "entities": {
15
+ "type": "array",
16
+ "items": {
17
+ "$id": "EntityJson",
18
+ "title": "EntityJson",
19
+ "anyOf": [
20
+ {
21
+ "type": "object",
22
+ "properties": {
23
+ "id": {
24
+ "type": "string"
25
+ },
26
+ "type": {
27
+ "const": "text",
28
+ "type": "string"
29
+ },
30
+ "position": {
31
+ "title": "Vector2",
32
+ "description": "A 2D position as [x, y].",
33
+ "type": "array",
34
+ "items": [
35
+ {
36
+ "type": "number"
37
+ },
38
+ {
39
+ "type": "number"
40
+ }
41
+ ],
42
+ "additionalItems": false,
43
+ "minItems": 2,
44
+ "maxItems": 2
45
+ },
46
+ "data": {
47
+ "title": "TextEntityData",
48
+ "additionalProperties": true,
49
+ "type": "object",
50
+ "properties": {
51
+ "value": {
52
+ "type": "string"
53
+ },
54
+ "color": {
55
+ "type": "string"
56
+ },
57
+ "fontSize": {
58
+ "type": "number"
59
+ },
60
+ "fontFamily": {
61
+ "type": "string"
62
+ }
63
+ }
64
+ }
65
+ },
66
+ "required": [
67
+ "id",
68
+ "type"
69
+ ]
70
+ },
71
+ {
72
+ "type": "object",
73
+ "properties": {
74
+ "id": {
75
+ "type": "string"
76
+ },
77
+ "type": {
78
+ "const": "sprite",
79
+ "type": "string"
80
+ },
81
+ "position": {
82
+ "title": "Vector2",
83
+ "description": "A 2D position as [x, y].",
84
+ "type": "array",
85
+ "items": [
86
+ {
87
+ "type": "number"
88
+ },
89
+ {
90
+ "type": "number"
91
+ }
92
+ ],
93
+ "additionalItems": false,
94
+ "minItems": 2,
95
+ "maxItems": 2
96
+ },
97
+ "data": {
98
+ "title": "SpriteEntityData",
99
+ "additionalProperties": true,
100
+ "type": "object",
101
+ "properties": {
102
+ "imagePath": {
103
+ "type": "string"
104
+ },
105
+ "width": {
106
+ "type": "number"
107
+ },
108
+ "height": {
109
+ "type": "number"
110
+ }
111
+ }
112
+ }
113
+ },
114
+ "required": [
115
+ "id",
116
+ "type"
117
+ ]
118
+ },
119
+ {
120
+ "type": "object",
121
+ "properties": {
122
+ "id": {
123
+ "type": "string"
124
+ },
125
+ "type": {
126
+ "const": "line",
127
+ "type": "string"
128
+ },
129
+ "position": {
130
+ "title": "Vector2",
131
+ "description": "A 2D position as [x, y].",
132
+ "type": "array",
133
+ "items": [
134
+ {
135
+ "type": "number"
136
+ },
137
+ {
138
+ "type": "number"
139
+ }
140
+ ],
141
+ "additionalItems": false,
142
+ "minItems": 2,
143
+ "maxItems": 2
144
+ },
145
+ "data": {
146
+ "title": "LineEntityData",
147
+ "additionalProperties": true,
148
+ "type": "object",
149
+ "properties": {
150
+ "points": {
151
+ "minItems": 2,
152
+ "type": "array",
153
+ "items": {
154
+ "title": "Vector3Tuple",
155
+ "type": "array",
156
+ "items": [
157
+ {
158
+ "type": "number"
159
+ },
160
+ {
161
+ "type": "number"
162
+ },
163
+ {
164
+ "type": "number"
165
+ }
166
+ ],
167
+ "additionalItems": false,
168
+ "minItems": 3,
169
+ "maxItems": 3
170
+ }
171
+ },
172
+ "color": {
173
+ "type": "string"
174
+ },
175
+ "colors": {
176
+ "type": "array",
177
+ "items": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ "linewidth": {
182
+ "type": "number"
183
+ },
184
+ "worldUnits": {
185
+ "type": "boolean"
186
+ },
187
+ "alphaToCoverage": {
188
+ "type": "boolean"
189
+ },
190
+ "opacity": {
191
+ "type": "number"
192
+ },
193
+ "transparent": {
194
+ "type": "boolean"
195
+ },
196
+ "dashed": {
197
+ "type": "boolean"
198
+ },
199
+ "dashSize": {
200
+ "type": "number"
201
+ },
202
+ "gapSize": {
203
+ "type": "number"
204
+ },
205
+ "pickThreshold": {
206
+ "type": "number"
207
+ }
208
+ },
209
+ "required": [
210
+ "points"
211
+ ]
212
+ }
213
+ },
214
+ "required": [
215
+ "id",
216
+ "type"
217
+ ]
218
+ },
219
+ {
220
+ "type": "object",
221
+ "properties": {
222
+ "id": {
223
+ "type": "string"
224
+ },
225
+ "type": {
226
+ "minLength": 1,
227
+ "type": "string"
228
+ },
229
+ "position": {
230
+ "title": "Vector2",
231
+ "description": "A 2D position as [x, y].",
232
+ "type": "array",
233
+ "items": [
234
+ {
235
+ "type": "number"
236
+ },
237
+ {
238
+ "type": "number"
239
+ }
240
+ ],
241
+ "additionalItems": false,
242
+ "minItems": 2,
243
+ "maxItems": 2
244
+ },
245
+ "data": {
246
+ "type": "object",
247
+ "patternProperties": {
248
+ "^(.*)$": {}
249
+ }
250
+ }
251
+ },
252
+ "required": [
253
+ "id",
254
+ "type"
255
+ ]
256
+ }
257
+ ]
258
+ }
259
+ },
260
+ "assets": {
261
+ "type": "array",
262
+ "items": {
263
+ "type": "string"
264
+ }
265
+ }
266
+ },
267
+ "required": [
268
+ "id",
269
+ "entities"
270
+ ]
271
+ }