@zylem/game-lib 0.7.0 → 0.8.2

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 (98) 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 +55350 -0
  5. package/dist/api/game-lib.api.md +4608 -0
  6. package/dist/api/game-lib.d.ts +8447 -0
  7. package/dist/api/game-lib.typedoc.json +352456 -0
  8. package/dist/audio.js +1 -1
  9. package/dist/{base-node-life-cycle-CnJ-7zX-.d.ts → base-node-life-cycle-BK9xebT9.d.ts} +18 -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-3PRBSSTS.js +24 -0
  14. package/dist/chunk-47DG7I7M.js +1 -0
  15. package/dist/chunk-7GYFZKK7.js +1 -0
  16. package/dist/chunk-7QF6YTEZ.js +1 -0
  17. package/dist/chunk-7WRQ2UAN.js +1 -0
  18. package/dist/chunk-BH53MBAZ.js +1 -0
  19. package/dist/chunk-BIGH6D34.js +0 -0
  20. package/dist/chunk-CD7ZOZ35.js +1 -0
  21. package/dist/chunk-CFVRRRZZ.js +1 -0
  22. package/dist/chunk-CM5YRNBJ.js +19 -0
  23. package/dist/chunk-COM6HJ2L.js +1 -0
  24. package/dist/chunk-D2PATZCC.js +1 -0
  25. package/dist/chunk-DFLI7ICU.js +0 -0
  26. package/dist/chunk-EVYHPR3J.js +1 -0
  27. package/dist/chunk-IPWUDOV5.js +1 -0
  28. package/dist/chunk-JNFFTNMH.js +1 -0
  29. package/dist/chunk-JQKS42G4.js +1 -0
  30. package/dist/chunk-KVSJE4XD.js +1 -0
  31. package/dist/chunk-MZZCDXFB.js +1 -0
  32. package/dist/chunk-ORIDWL3T.js +0 -0
  33. package/dist/{chunk-RXDTAWI2.js → chunk-PCFF4LLO.js} +1 -1
  34. package/dist/chunk-QB3NL7VQ.js +1 -0
  35. package/dist/chunk-TAUWDQZF.js +9 -0
  36. package/dist/chunk-UG22Z42P.js +1 -0
  37. package/dist/chunk-VS2D4B3W.js +1 -0
  38. package/dist/chunk-WQ3WMMZD.js +1 -0
  39. package/dist/chunk-XK63E4SX.js +1 -0
  40. package/dist/chunk-YAOXFYOD.js +1 -0
  41. package/dist/chunk-ZRT3ZQVH.js +1 -0
  42. package/dist/collision-builder-B_tm8OVy.d.ts +49 -0
  43. package/dist/core.d.ts +45 -30
  44. package/dist/core.js +1 -24
  45. package/dist/debug-state-DRoeasG2.d.ts +17 -0
  46. package/dist/debug.d.ts +71 -19
  47. package/dist/debug.js +1 -1
  48. package/dist/{default-controls-BGc61yYl.d.ts → default-controls-CAKJ5zlo.d.ts} +3 -3
  49. package/dist/entity-B9yZeBm4.d.ts +34 -0
  50. package/dist/{entity-DNkYKfdp.d.ts → entity-BGEq1yfC.d.ts} +91 -444
  51. package/dist/{entity-type-map-C94h2TDW.d.ts → entity-type-map-CW6RHQkx.d.ts} +153 -6
  52. package/dist/entity.d.ts +15 -10
  53. package/dist/entity.js +1 -1
  54. package/dist/events.d.ts +10 -1
  55. package/dist/events.js +1 -1
  56. package/dist/{game-Cuj5gy7U.d.ts → game-DbqBQiFC.d.ts} +460 -135
  57. package/dist/game-default-6AZZCNST.js +1 -0
  58. package/dist/{game-interfaces-tfpM5NBk.d.ts → game-interfaces-vF5sRi1n.d.ts} +8 -2
  59. package/dist/globals.d.ts +12 -1
  60. package/dist/globals.js +1 -1
  61. package/dist/graphics.d.ts +16 -46
  62. package/dist/graphics.js +1 -1
  63. package/dist/input-ui.d.ts +5 -4
  64. package/dist/input-ui.js +1 -1
  65. package/dist/input.d.ts +48 -4
  66. package/dist/input.js +1 -1
  67. package/dist/{material-Wz83vTTp.d.ts → material-DbSuZBbP.d.ts} +25 -50
  68. package/dist/public.d.ts +38 -0
  69. package/dist/public.js +1 -0
  70. package/dist/runtime.d.ts +7 -381
  71. package/dist/runtime.js +1 -1
  72. package/dist/schema/entity.schema.json +244 -0
  73. package/dist/schema/game-config.schema.json +643 -0
  74. package/dist/schema/input-config.schema.json +517 -0
  75. package/dist/schema/stage-config.schema.json +93 -0
  76. package/dist/schema/stage.schema.json +271 -0
  77. package/dist/schema.d.ts +550 -0
  78. package/dist/schema.js +1 -0
  79. package/dist/stage-transition-CmGpV4tc.d.ts +46 -0
  80. package/dist/vector-DN6zlPoE.d.ts +161 -0
  81. package/dist/web-components.d.ts +15 -12
  82. package/dist/web-components.js +1 -9
  83. package/dist/{zylem-stage-runtime-Cs-UDEVU.d.ts → zylem-camera-Du2UPW9O.d.ts} +74 -264
  84. package/package.json +28 -20
  85. package/dist/chunk-73VZQZUL.js +0 -1
  86. package/dist/chunk-A34ZG3L4.js +0 -1
  87. package/dist/chunk-CDPY4VOQ.js +0 -1
  88. package/dist/chunk-DR6XXZE7.js +0 -19
  89. package/dist/chunk-FM5TBEPO.js +0 -1
  90. package/dist/chunk-G2IIMSUH.js +0 -1
  91. package/dist/chunk-MSC2BEO5.js +0 -1
  92. package/dist/chunk-NIH5CONO.js +0 -1
  93. package/dist/chunk-ONWXGBWB.js +0 -1
  94. package/dist/chunk-QEDQDR27.js +0 -1
  95. package/dist/chunk-WKHW2QO2.js +0 -1
  96. package/dist/chunk-YHKXQ2ZN.js +0 -1
  97. package/dist/game-default-PZLLHYL7.js +0 -1
  98. package/dist/world-C9zdyl5d.d.ts +0 -103
@@ -0,0 +1,244 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "EntityJson",
4
+ "title": "EntityJson",
5
+ "anyOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "id": {
10
+ "type": "string"
11
+ },
12
+ "type": {
13
+ "const": "text",
14
+ "type": "string"
15
+ },
16
+ "position": {
17
+ "title": "Vector2",
18
+ "description": "A 2D position as [x, y].",
19
+ "type": "array",
20
+ "items": [
21
+ {
22
+ "type": "number"
23
+ },
24
+ {
25
+ "type": "number"
26
+ }
27
+ ],
28
+ "additionalItems": false,
29
+ "minItems": 2,
30
+ "maxItems": 2
31
+ },
32
+ "data": {
33
+ "title": "TextEntityData",
34
+ "additionalProperties": true,
35
+ "type": "object",
36
+ "properties": {
37
+ "value": {
38
+ "type": "string"
39
+ },
40
+ "color": {
41
+ "type": "string"
42
+ },
43
+ "fontSize": {
44
+ "type": "number"
45
+ },
46
+ "fontFamily": {
47
+ "type": "string"
48
+ }
49
+ }
50
+ }
51
+ },
52
+ "required": [
53
+ "id",
54
+ "type"
55
+ ]
56
+ },
57
+ {
58
+ "type": "object",
59
+ "properties": {
60
+ "id": {
61
+ "type": "string"
62
+ },
63
+ "type": {
64
+ "const": "sprite",
65
+ "type": "string"
66
+ },
67
+ "position": {
68
+ "title": "Vector2",
69
+ "description": "A 2D position as [x, y].",
70
+ "type": "array",
71
+ "items": [
72
+ {
73
+ "type": "number"
74
+ },
75
+ {
76
+ "type": "number"
77
+ }
78
+ ],
79
+ "additionalItems": false,
80
+ "minItems": 2,
81
+ "maxItems": 2
82
+ },
83
+ "data": {
84
+ "title": "SpriteEntityData",
85
+ "additionalProperties": true,
86
+ "type": "object",
87
+ "properties": {
88
+ "imagePath": {
89
+ "type": "string"
90
+ },
91
+ "width": {
92
+ "type": "number"
93
+ },
94
+ "height": {
95
+ "type": "number"
96
+ }
97
+ }
98
+ }
99
+ },
100
+ "required": [
101
+ "id",
102
+ "type"
103
+ ]
104
+ },
105
+ {
106
+ "type": "object",
107
+ "properties": {
108
+ "id": {
109
+ "type": "string"
110
+ },
111
+ "type": {
112
+ "const": "line",
113
+ "type": "string"
114
+ },
115
+ "position": {
116
+ "title": "Vector2",
117
+ "description": "A 2D position as [x, y].",
118
+ "type": "array",
119
+ "items": [
120
+ {
121
+ "type": "number"
122
+ },
123
+ {
124
+ "type": "number"
125
+ }
126
+ ],
127
+ "additionalItems": false,
128
+ "minItems": 2,
129
+ "maxItems": 2
130
+ },
131
+ "data": {
132
+ "title": "LineEntityData",
133
+ "additionalProperties": true,
134
+ "type": "object",
135
+ "properties": {
136
+ "points": {
137
+ "minItems": 2,
138
+ "type": "array",
139
+ "items": {
140
+ "title": "Vector3Tuple",
141
+ "type": "array",
142
+ "items": [
143
+ {
144
+ "type": "number"
145
+ },
146
+ {
147
+ "type": "number"
148
+ },
149
+ {
150
+ "type": "number"
151
+ }
152
+ ],
153
+ "additionalItems": false,
154
+ "minItems": 3,
155
+ "maxItems": 3
156
+ }
157
+ },
158
+ "color": {
159
+ "type": "string"
160
+ },
161
+ "colors": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "string"
165
+ }
166
+ },
167
+ "linewidth": {
168
+ "type": "number"
169
+ },
170
+ "worldUnits": {
171
+ "type": "boolean"
172
+ },
173
+ "alphaToCoverage": {
174
+ "type": "boolean"
175
+ },
176
+ "opacity": {
177
+ "type": "number"
178
+ },
179
+ "transparent": {
180
+ "type": "boolean"
181
+ },
182
+ "dashed": {
183
+ "type": "boolean"
184
+ },
185
+ "dashSize": {
186
+ "type": "number"
187
+ },
188
+ "gapSize": {
189
+ "type": "number"
190
+ },
191
+ "pickThreshold": {
192
+ "type": "number"
193
+ }
194
+ },
195
+ "required": [
196
+ "points"
197
+ ]
198
+ }
199
+ },
200
+ "required": [
201
+ "id",
202
+ "type"
203
+ ]
204
+ },
205
+ {
206
+ "type": "object",
207
+ "properties": {
208
+ "id": {
209
+ "type": "string"
210
+ },
211
+ "type": {
212
+ "minLength": 1,
213
+ "type": "string"
214
+ },
215
+ "position": {
216
+ "title": "Vector2",
217
+ "description": "A 2D position as [x, y].",
218
+ "type": "array",
219
+ "items": [
220
+ {
221
+ "type": "number"
222
+ },
223
+ {
224
+ "type": "number"
225
+ }
226
+ ],
227
+ "additionalItems": false,
228
+ "minItems": 2,
229
+ "maxItems": 2
230
+ },
231
+ "data": {
232
+ "type": "object",
233
+ "patternProperties": {
234
+ "^(.*)$": {}
235
+ }
236
+ }
237
+ },
238
+ "required": [
239
+ "id",
240
+ "type"
241
+ ]
242
+ }
243
+ ]
244
+ }