castle-web-cli 0.4.129 → 0.4.130

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 (144) hide show
  1. package/dist/agent-prompts.js +4 -4
  2. package/dist/filesChanged.d.ts +2 -0
  3. package/dist/filesChanged.js +6 -2
  4. package/dist/ide.js +15 -4
  5. package/dist/importBrowse.js +1 -0
  6. package/dist/index.js +10 -4
  7. package/dist/init.js +63 -15
  8. package/dist/native/loop.js +1 -1
  9. package/dist/native/tools.js +1 -1
  10. package/dist/serve.d.ts +1 -0
  11. package/dist/serve.js +20 -1
  12. package/dist/shell/assets/index-BpOLUyVO.js +441 -0
  13. package/dist/shell/assets/{index-CAq6f9B5.css → index-D6K-0YDB.css} +1 -1
  14. package/dist/shell/index.html +2 -2
  15. package/kits/physics-2d/CLAUDE.md +9 -10
  16. package/kits/physics-2d/castle.json +1 -1
  17. package/kits/physics-2d/editors/PlayOnly.jsx +15 -6
  18. package/kits/physics-2d/editors/PxArtEditor.jsx +95 -31
  19. package/kits/physics-2d/editors/SceneEditor.jsx +5 -5
  20. package/kits/physics-2d/editors/SingleEditor.jsx +37 -8
  21. package/kits/physics-2d/editors/StyleEditor.jsx +7 -4
  22. package/kits/physics-2d/editors/pixelEditorChrome.jsx +7 -7
  23. package/kits/physics-2d/editors/pixelInspector.jsx +13 -7
  24. package/kits/physics-2d/editors/pxArtTimeline.jsx +29 -11
  25. package/kits/physics-2d/editors/pxArtTimeline.module.css +11 -0
  26. package/kits/physics-2d/engine/blueprint.js +15 -3
  27. package/kits/physics-2d/engine/liveReload.js +33 -21
  28. package/kits/physics-2d/engine/systemRegistry.js +1 -1
  29. package/kits/physics-2d/engine/ui.jsx +2 -2
  30. package/kits/physics-2d/engine/ui.module.css +42 -0
  31. package/kits/physics-3d/CLAUDE.md +109 -0
  32. package/kits/physics-3d/behaviors/Body.jsx +51 -0
  33. package/kits/physics-3d/behaviors/Door.jsx +31 -0
  34. package/kits/physics-3d/behaviors/Lookable.jsx +11 -0
  35. package/kits/physics-3d/behaviors/Model.jsx +14 -0
  36. package/kits/physics-3d/behaviors/Pickup.jsx +39 -0
  37. package/kits/physics-3d/behaviors/Player.jsx +172 -0
  38. package/kits/physics-3d/behaviors/Portal.jsx +19 -0
  39. package/kits/physics-3d/behaviors/Shape.jsx +75 -0
  40. package/kits/physics-3d/behaviors/Solid.jsx +11 -0
  41. package/kits/physics-3d/behaviors/Transform.jsx +24 -0
  42. package/kits/physics-3d/blueprints/barrel.scene +15 -0
  43. package/kits/physics-3d/blueprints/crate.scene +29 -0
  44. package/kits/physics-3d/blueprints/door.scene +35 -0
  45. package/kits/physics-3d/blueprints/gem.scene +26 -0
  46. package/kits/physics-3d/blueprints/pillar.scene +25 -0
  47. package/kits/physics-3d/blueprints/platform.scene +23 -0
  48. package/kits/physics-3d/blueprints/player.scene +29 -0
  49. package/kits/physics-3d/blueprints/portal.scene +21 -0
  50. package/kits/physics-3d/blueprints/rock.scene +14 -0
  51. package/kits/physics-3d/blueprints/statue.scene +26 -0
  52. package/kits/physics-3d/blueprints/tree.scene +14 -0
  53. package/kits/physics-3d/blueprints/wall.scene +26 -0
  54. package/kits/{basic-2d → physics-3d}/castle.json +23 -5
  55. package/kits/physics-3d/docs/pxmodel-format.md +111 -0
  56. package/kits/physics-3d/drawings/crate.pxart +26 -0
  57. package/kits/physics-3d/drawings/door-edge.pxart +26 -0
  58. package/kits/physics-3d/drawings/door.pxart +27 -0
  59. package/kits/physics-3d/drawings/face.pxart +26 -0
  60. package/kits/physics-3d/drawings/floor.pxart +27 -0
  61. package/kits/physics-3d/drawings/platform.pxart +27 -0
  62. package/kits/physics-3d/drawings/statue.pxart +27 -0
  63. package/kits/physics-3d/drawings/wall.pxart +27 -0
  64. package/kits/physics-3d/engine3d/PlayOnly3D.jsx +32 -0
  65. package/kits/physics-3d/engine3d/PxModelEditor.jsx +619 -0
  66. package/kits/physics-3d/engine3d/Scene3DEditor.jsx +618 -0
  67. package/kits/physics-3d/engine3d/Scene3DPlayer.jsx +309 -0
  68. package/kits/physics-3d/engine3d/editor3dData.js +114 -0
  69. package/kits/physics-3d/engine3d/editor3dInspector.jsx +404 -0
  70. package/kits/physics-3d/engine3d/editorChrome.jsx +218 -0
  71. package/kits/physics-3d/engine3d/editorWorld.js +249 -0
  72. package/kits/physics-3d/engine3d/materials.js +174 -0
  73. package/kits/physics-3d/engine3d/meshops.js +123 -0
  74. package/kits/physics-3d/engine3d/modelEditorWorld.js +439 -0
  75. package/kits/physics-3d/engine3d/modelFiles.js +139 -0
  76. package/kits/physics-3d/engine3d/pxmodel.js +265 -0
  77. package/kits/physics-3d/engine3d/thumbnails.js +137 -0
  78. package/kits/physics-3d/engine3d/world3d.js +216 -0
  79. package/kits/{basic-2d → physics-3d}/eslint.config.js +10 -25
  80. package/kits/physics-3d/index.html +20 -0
  81. package/kits/physics-3d/main.jsx +30 -0
  82. package/kits/physics-3d/models/barrel.pxmodel +10 -0
  83. package/kits/physics-3d/models/player.pxmodel +222 -0
  84. package/kits/physics-3d/models/rock.pxmodel +30 -0
  85. package/kits/physics-3d/models/tree.pxmodel +10 -0
  86. package/kits/{basic-2d → physics-3d}/package-lock.json +140 -119
  87. package/kits/{basic-2d → physics-3d}/package.json +11 -9
  88. package/kits/{basic-2d → physics-3d}/pnpm-lock.yaml +162 -137
  89. package/kits/physics-3d/scenes/main.scene +414 -0
  90. package/kits/physics-3d/scenes/model-lab.scene +127 -0
  91. package/kits/physics-3d/systems/physics3d.js +356 -0
  92. package/package.json +5 -2
  93. package/dist/shell/assets/index-DKu9ejyh.js +0 -436
  94. package/kits/basic-2d/CLAUDE.md +0 -221
  95. package/kits/basic-2d/behaviors/Camera.jsx +0 -43
  96. package/kits/basic-2d/behaviors/Collider.jsx +0 -213
  97. package/kits/basic-2d/behaviors/Layout.jsx +0 -53
  98. package/kits/basic-2d/behaviors/Sprite.jsx +0 -357
  99. package/kits/basic-2d/behaviors/tint.js +0 -47
  100. package/kits/basic-2d/blueprints/cauldron.scene +0 -20
  101. package/kits/basic-2d/docs/pxart-format.md +0 -377
  102. package/kits/basic-2d/drawings/cauldron.pxart +0 -113
  103. package/kits/basic-2d/editors/BlueprintLibrary.jsx +0 -270
  104. package/kits/basic-2d/editors/ErrorBoundary.jsx +0 -59
  105. package/kits/basic-2d/editors/PlayOnly.jsx +0 -31
  106. package/kits/basic-2d/editors/PxArtEditor.jsx +0 -1092
  107. package/kits/basic-2d/editors/SceneEditor.jsx +0 -1780
  108. package/kits/basic-2d/editors/SelectionOverlay.jsx +0 -909
  109. package/kits/basic-2d/editors/SingleEditor.jsx +0 -122
  110. package/kits/basic-2d/editors/behaviorRegistry.js +0 -34
  111. package/kits/basic-2d/editors/editorHistory.js +0 -157
  112. package/kits/basic-2d/editors/inspectorSheet.js +0 -13
  113. package/kits/basic-2d/editors/pixelCanvas.js +0 -11
  114. package/kits/basic-2d/editors/pixelEditorChrome.jsx +0 -74
  115. package/kits/basic-2d/editors/pixelGeometry.js +0 -140
  116. package/kits/basic-2d/editors/pixelInspector.jsx +0 -633
  117. package/kits/basic-2d/editors/pxArtEditorModel.js +0 -732
  118. package/kits/basic-2d/editors/pxArtPlayback.js +0 -92
  119. package/kits/basic-2d/editors/pxArtTimeline.jsx +0 -752
  120. package/kits/basic-2d/editors/pxArtTimeline.module.css +0 -506
  121. package/kits/basic-2d/editors/pxArtTools.js +0 -232
  122. package/kits/basic-2d/editors/useArtboardFit.js +0 -105
  123. package/kits/basic-2d/engine/ScenePlayer.jsx +0 -209
  124. package/kits/basic-2d/engine/SceneUI.jsx +0 -59
  125. package/kits/basic-2d/engine/assets.js +0 -15
  126. package/kits/basic-2d/engine/autoInspector.jsx +0 -70
  127. package/kits/basic-2d/engine/behaviorExtensions.js +0 -32
  128. package/kits/basic-2d/engine/blueprint.js +0 -557
  129. package/kits/basic-2d/engine/collider.js +0 -200
  130. package/kits/basic-2d/engine/files.js +0 -141
  131. package/kits/basic-2d/engine/liveReload.js +0 -88
  132. package/kits/basic-2d/engine/pxart.js +0 -1032
  133. package/kits/basic-2d/engine/pxartSmooth.js +0 -222
  134. package/kits/basic-2d/engine/scene.js +0 -696
  135. package/kits/basic-2d/engine/spriteGeometry.js +0 -32
  136. package/kits/basic-2d/engine/systemRegistry.js +0 -16
  137. package/kits/basic-2d/engine/ui.jsx +0 -695
  138. package/kits/basic-2d/engine/ui.module.css +0 -2287
  139. package/kits/basic-2d/index.html +0 -24
  140. package/kits/basic-2d/main.jsx +0 -24
  141. package/kits/basic-2d/scenes/main.scene +0 -16
  142. package/kits/basic-2d/scripts/draw.mjs +0 -121
  143. /package/kits/{basic-2d → physics-3d}/.prettierrc +0 -0
  144. /package/kits/{basic-2d → physics-3d}/vite.config.js +0 -0
@@ -0,0 +1,414 @@
1
+ {
2
+ "name": "Main",
3
+ "ground": {
4
+ "art": "drawings/floor.pxart",
5
+ "tile": 2
6
+ },
7
+ "actors": [
8
+ {
9
+ "id": "player",
10
+ "blueprint": "blueprints/player.scene",
11
+ "components": {
12
+ "Transform": {
13
+ "x": -2.2,
14
+ "z": 2,
15
+ "y": 1
16
+ }
17
+ }
18
+ },
19
+ {
20
+ "id": "pedestal",
21
+ "blueprint": "blueprints/platform.scene",
22
+ "components": {
23
+ "Transform": {
24
+ "x": 4,
25
+ "z": 3
26
+ },
27
+ "Shape": {
28
+ "width": 1.6,
29
+ "depth": 1.6
30
+ }
31
+ }
32
+ },
33
+ {
34
+ "id": "statue",
35
+ "blueprint": "blueprints/statue.scene",
36
+ "components": {
37
+ "Transform": {
38
+ "x": 4,
39
+ "y": 1.2,
40
+ "z": 3
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "id": "crate-1",
46
+ "blueprint": "blueprints/crate.scene",
47
+ "components": {
48
+ "Transform": {
49
+ "x": -3,
50
+ "z": 3
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "id": "crate-2",
56
+ "blueprint": "blueprints/crate.scene",
57
+ "components": {
58
+ "Transform": {
59
+ "x": -3.9,
60
+ "z": 4.1
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "id": "crate-3",
66
+ "blueprint": "blueprints/crate.scene",
67
+ "components": {
68
+ "Transform": {
69
+ "x": -3.2,
70
+ "y": 1.6,
71
+ "z": 3.6
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "id": "crate-4",
77
+ "blueprint": "blueprints/crate.scene",
78
+ "components": {
79
+ "Transform": {
80
+ "x": 6.8,
81
+ "z": 6.6
82
+ }
83
+ }
84
+ },
85
+ {
86
+ "id": "crate-5",
87
+ "blueprint": "blueprints/crate.scene",
88
+ "components": {
89
+ "Transform": {
90
+ "x": 6.1,
91
+ "y": 1.6,
92
+ "z": 7.2
93
+ }
94
+ }
95
+ },
96
+ {
97
+ "id": "gem-1",
98
+ "blueprint": "blueprints/gem.scene",
99
+ "components": {
100
+ "Transform": {
101
+ "x": 2,
102
+ "z": 6
103
+ }
104
+ }
105
+ },
106
+ {
107
+ "id": "gem-2",
108
+ "blueprint": "blueprints/gem.scene",
109
+ "components": {
110
+ "Transform": {
111
+ "x": -5,
112
+ "z": 0
113
+ }
114
+ }
115
+ },
116
+ {
117
+ "id": "gem-3",
118
+ "blueprint": "blueprints/gem.scene",
119
+ "components": {
120
+ "Transform": {
121
+ "x": 6,
122
+ "z": -2
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "id": "gem-4",
128
+ "blueprint": "blueprints/gem.scene",
129
+ "components": {
130
+ "Transform": {
131
+ "x": 0,
132
+ "z": -8
133
+ }
134
+ }
135
+ },
136
+ {
137
+ "id": "gem-5",
138
+ "blueprint": "blueprints/gem.scene",
139
+ "components": {
140
+ "Transform": {
141
+ "x": 8,
142
+ "y": 2.9,
143
+ "z": 1.2
144
+ }
145
+ }
146
+ },
147
+ {
148
+ "id": "gem-6",
149
+ "blueprint": "blueprints/gem.scene",
150
+ "components": {
151
+ "Transform": {
152
+ "x": -7,
153
+ "z": -6
154
+ }
155
+ }
156
+ },
157
+ {
158
+ "id": "gem-7",
159
+ "blueprint": "blueprints/gem.scene",
160
+ "components": {
161
+ "Transform": {
162
+ "x": 9,
163
+ "z": 7
164
+ }
165
+ }
166
+ },
167
+ {
168
+ "id": "step-1",
169
+ "blueprint": "blueprints/platform.scene",
170
+ "components": {
171
+ "Transform": {
172
+ "x": 8,
173
+ "z": 4
174
+ }
175
+ }
176
+ },
177
+ {
178
+ "id": "step-2",
179
+ "blueprint": "blueprints/platform.scene",
180
+ "components": {
181
+ "Transform": {
182
+ "x": 9.4,
183
+ "y": 1.1,
184
+ "z": 2.6
185
+ }
186
+ }
187
+ },
188
+ {
189
+ "id": "step-3",
190
+ "blueprint": "blueprints/platform.scene",
191
+ "components": {
192
+ "Transform": {
193
+ "x": 8,
194
+ "y": 2,
195
+ "z": 1.2
196
+ }
197
+ }
198
+ },
199
+ {
200
+ "id": "wall-n",
201
+ "blueprint": "blueprints/wall.scene",
202
+ "components": {
203
+ "Transform": {
204
+ "x": 0,
205
+ "z": -12
206
+ },
207
+ "Shape": {
208
+ "width": 8.4,
209
+ "artRepeat": [
210
+ 4,
211
+ 1
212
+ ]
213
+ }
214
+ }
215
+ },
216
+ {
217
+ "id": "wall-w",
218
+ "blueprint": "blueprints/wall.scene",
219
+ "components": {
220
+ "Transform": {
221
+ "x": -4,
222
+ "z": -8,
223
+ "rotationY": 90
224
+ },
225
+ "Shape": {
226
+ "width": 8.4,
227
+ "artRepeat": [
228
+ 4,
229
+ 1
230
+ ]
231
+ }
232
+ }
233
+ },
234
+ {
235
+ "id": "wall-e",
236
+ "blueprint": "blueprints/wall.scene",
237
+ "components": {
238
+ "Transform": {
239
+ "x": 4,
240
+ "z": -8,
241
+ "rotationY": 90
242
+ },
243
+ "Shape": {
244
+ "width": 8.4,
245
+ "artRepeat": [
246
+ 4,
247
+ 1
248
+ ]
249
+ }
250
+ }
251
+ },
252
+ {
253
+ "id": "wall-s1",
254
+ "blueprint": "blueprints/wall.scene",
255
+ "components": {
256
+ "Transform": {
257
+ "x": -2.55,
258
+ "z": -4
259
+ },
260
+ "Shape": {
261
+ "width": 2.9,
262
+ "artRepeat": [
263
+ 1.5,
264
+ 1
265
+ ]
266
+ }
267
+ }
268
+ },
269
+ {
270
+ "id": "wall-s2",
271
+ "blueprint": "blueprints/wall.scene",
272
+ "components": {
273
+ "Transform": {
274
+ "x": 2.55,
275
+ "z": -4
276
+ },
277
+ "Shape": {
278
+ "width": 2.9,
279
+ "artRepeat": [
280
+ 1.5,
281
+ 1
282
+ ]
283
+ }
284
+ }
285
+ },
286
+ {
287
+ "id": "door",
288
+ "blueprint": "blueprints/door.scene",
289
+ "components": {
290
+ "Transform": {
291
+ "x": 0,
292
+ "z": -4
293
+ }
294
+ }
295
+ },
296
+ {
297
+ "id": "pillar-w",
298
+ "blueprint": "blueprints/pillar.scene",
299
+ "components": {
300
+ "Transform": {
301
+ "x": -1.5,
302
+ "z": -3.4
303
+ }
304
+ }
305
+ },
306
+ {
307
+ "id": "pillar-e",
308
+ "blueprint": "blueprints/pillar.scene",
309
+ "components": {
310
+ "Transform": {
311
+ "x": 1.5,
312
+ "z": -3.4
313
+ }
314
+ }
315
+ },
316
+ {
317
+ "id": "low-wall-n",
318
+ "blueprint": "blueprints/wall.scene",
319
+ "components": {
320
+ "Transform": {
321
+ "x": 2,
322
+ "y": 0.4,
323
+ "z": 9.5
324
+ },
325
+ "Shape": {
326
+ "width": 5,
327
+ "height": 0.8,
328
+ "artRepeat": [
329
+ 2.5,
330
+ 0.4
331
+ ]
332
+ }
333
+ }
334
+ },
335
+ {
336
+ "id": "low-wall-w",
337
+ "blueprint": "blueprints/wall.scene",
338
+ "components": {
339
+ "Transform": {
340
+ "x": -6.5,
341
+ "y": 0.4,
342
+ "z": 6,
343
+ "rotationY": 90
344
+ },
345
+ "Shape": {
346
+ "width": 4,
347
+ "height": 0.8,
348
+ "artRepeat": [
349
+ 2,
350
+ 0.4
351
+ ]
352
+ }
353
+ }
354
+ },
355
+ {
356
+ "id": "tree-1",
357
+ "blueprint": "blueprints/tree.scene",
358
+ "components": {
359
+ "Transform": {
360
+ "x": -2.7,
361
+ "z": -13.5
362
+ }
363
+ }
364
+ },
365
+ {
366
+ "id": "tree-2",
367
+ "blueprint": "blueprints/tree.scene",
368
+ "components": {
369
+ "Transform": {
370
+ "x": -1.3,
371
+ "z": -14.2
372
+ }
373
+ }
374
+ },
375
+ {
376
+ "id": "portal-lab",
377
+ "blueprint": "blueprints/portal.scene",
378
+ "components": {
379
+ "Transform": {
380
+ "x": -8,
381
+ "z": 2
382
+ },
383
+ "Portal": {
384
+ "scene": "scenes/model-lab.scene"
385
+ },
386
+ "Lookable": {
387
+ "text": "a portal to the model lab."
388
+ }
389
+ }
390
+ },
391
+ {
392
+ "id": "crate",
393
+ "blueprint": "blueprints/crate.scene",
394
+ "components": {
395
+ "Transform": {
396
+ "x": -2.2,
397
+ "y": 1.6,
398
+ "z": 5.5
399
+ }
400
+ }
401
+ },
402
+ {
403
+ "id": "crate-6",
404
+ "blueprint": "blueprints/crate.scene",
405
+ "components": {
406
+ "Transform": {
407
+ "x": -1.2,
408
+ "y": 1.6,
409
+ "z": 2.6
410
+ }
411
+ }
412
+ }
413
+ ]
414
+ }
@@ -0,0 +1,127 @@
1
+ {
2
+ "name": "Model Lab",
3
+ "ground": {
4
+ "art": "drawings/floor.pxart",
5
+ "tile": 2
6
+ },
7
+ "actors": [
8
+ {
9
+ "id": "player",
10
+ "blueprint": "blueprints/player.scene",
11
+ "components": {
12
+ "Transform": {
13
+ "x": 0,
14
+ "z": 5
15
+ }
16
+ }
17
+ },
18
+ {
19
+ "id": "tree-1",
20
+ "blueprint": "blueprints/tree.scene",
21
+ "components": {
22
+ "Transform": {
23
+ "x": -4,
24
+ "z": 0
25
+ }
26
+ }
27
+ },
28
+ {
29
+ "id": "tree-2",
30
+ "blueprint": "blueprints/tree.scene",
31
+ "components": {
32
+ "Transform": {
33
+ "x": 3,
34
+ "z": -3
35
+ }
36
+ }
37
+ },
38
+ {
39
+ "id": "tree-3",
40
+ "blueprint": "blueprints/tree.scene",
41
+ "components": {
42
+ "Transform": {
43
+ "x": 6,
44
+ "z": 3
45
+ }
46
+ }
47
+ },
48
+ {
49
+ "id": "tree-4",
50
+ "blueprint": "blueprints/tree.scene",
51
+ "components": {
52
+ "Transform": {
53
+ "x": -6,
54
+ "z": -5
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "id": "barrel-1",
60
+ "blueprint": "blueprints/barrel.scene",
61
+ "components": {
62
+ "Transform": {
63
+ "x": 2,
64
+ "z": 4
65
+ }
66
+ }
67
+ },
68
+ {
69
+ "id": "barrel-2",
70
+ "blueprint": "blueprints/barrel.scene",
71
+ "components": {
72
+ "Transform": {
73
+ "x": 2.9,
74
+ "z": 4.6
75
+ }
76
+ }
77
+ },
78
+ {
79
+ "id": "barrel-3",
80
+ "blueprint": "blueprints/barrel.scene",
81
+ "components": {
82
+ "Transform": {
83
+ "x": 2.4,
84
+ "y": 1.36,
85
+ "z": 4.2
86
+ }
87
+ }
88
+ },
89
+ {
90
+ "id": "rock-1",
91
+ "blueprint": "blueprints/rock.scene",
92
+ "components": {
93
+ "Transform": {
94
+ "x": 5,
95
+ "z": -4
96
+ }
97
+ }
98
+ },
99
+ {
100
+ "id": "rock-2",
101
+ "blueprint": "blueprints/rock.scene",
102
+ "components": {
103
+ "Transform": {
104
+ "x": -3.5,
105
+ "z": 6,
106
+ "rotationY": 140
107
+ }
108
+ }
109
+ },
110
+ {
111
+ "id": "portal-courtyard",
112
+ "blueprint": "blueprints/portal.scene",
113
+ "components": {
114
+ "Transform": {
115
+ "x": -2,
116
+ "z": 8.6
117
+ },
118
+ "Portal": {
119
+ "scene": "scenes/main.scene"
120
+ },
121
+ "Lookable": {
122
+ "text": "a portal back to the courtyard."
123
+ }
124
+ }
125
+ }
126
+ ]
127
+ }