incanto 0.60.0 → 0.62.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 (68) hide show
  1. package/bin/incanto-check.mjs +13 -0
  2. package/bin/incanto-verify.mjs +134 -55
  3. package/dist/2d.d.ts +64 -3
  4. package/dist/2d.js +3 -3
  5. package/dist/3d.d.ts +5 -5
  6. package/dist/3d.js +5 -4
  7. package/dist/{pathfinding-BqWBb0kh.d.ts → audio-player-D5GJgb_x.d.ts} +103 -38
  8. package/dist/{behavior-DWKTUzKI.d.ts → behavior-DsgayMsH.d.ts} +79 -1
  9. package/dist/{create-game-ClnIb_M5.js → create-game-BpunnGPX.js} +78 -13
  10. package/dist/{create-game-BCm38FJV.js → create-game-Caut3bqN.js} +21 -294
  11. package/dist/debug.d.ts +1 -1
  12. package/dist/debug.js +1 -1
  13. package/dist/{duplicate-DJQd44CD.js → duplicate-E4FUs5Bn.js} +1 -1
  14. package/dist/editor.js +41 -19
  15. package/dist/{environment-presets-8cjF3t6w.js → environment-presets-BAWeOeqf.js} +50 -13
  16. package/dist/{gameplay-BBEjPFsR.js → gameplay-CaHqDiQD.js} +177 -24
  17. package/dist/gameplay.d.ts +1 -1
  18. package/dist/gameplay.js +1 -1
  19. package/dist/index.d.ts +97 -6
  20. package/dist/index.js +7 -7
  21. package/dist/{loader-D8n7TU8W.js → loader-DEe272nY.js} +900 -2
  22. package/dist/{loader-TvkRFbyL.d.ts → loader-DolLJWJn.d.ts} +13 -1
  23. package/dist/net.d.ts +2 -2
  24. package/dist/net.js +1 -1
  25. package/dist/pathfinding-_fGrCFmH.d.ts +28 -0
  26. package/dist/{physics-2d-DqdVp1bt.js → physics-2d-BXmu2i7W.js} +11 -3
  27. package/dist/{physics-3d-BP0DZb_1.js → physics-3d-ClxP6Uv7.js} +121 -17
  28. package/dist/react.d.ts +1 -1
  29. package/dist/react.js +1 -1
  30. package/dist/{register-BSu2dWGC.js → register-CNh4FlbD.js} +104 -16
  31. package/dist/{register-Da3hXh2H.js → register-D3yx8D4r.js} +228 -16
  32. package/dist/{registry-WWcQcfMr.js → registry-CF70EArN.js} +55 -3
  33. package/dist/{replay-BCMK_VRP.d.ts → replay-C5x2vPF5.d.ts} +2 -2
  34. package/dist/{replay-BlNuIDdg.js → replay-DlgHItNv.js} +57 -197
  35. package/dist/{split-screen-CL5Yvxse.js → split-screen-CBM9wcMX.js} +3 -3
  36. package/dist/{split-screen-BQ3tAsf-.d.ts → split-screen-D7OopelJ.d.ts} +2 -2
  37. package/dist/{src-DFpXBMJN.js → src-CH00_JsR.js} +1 -1
  38. package/dist/{teardown-CTTwhWSe.js → teardown-C7qP-dcC.js} +1 -1
  39. package/dist/{test-BeZ95pqw.js → test-BMkg8zMV.js} +29 -16
  40. package/dist/test.d.ts +45 -4
  41. package/dist/test.js +2 -2
  42. package/dist/vite.js +2 -2
  43. package/editor/assets/{agent8-DSJries_.js → agent8-m5mtAO_A.js} +1 -1
  44. package/editor/assets/{debug-D15Wi5TO.js → debug-CPhzCT8f.js} +1 -1
  45. package/editor/assets/{index-BjC88k97.js → index-D422P4kW.js} +92 -92
  46. package/editor/index.html +1 -1
  47. package/package.json +1 -1
  48. package/schemas/scene.schema.json +91 -0
  49. package/skills/incanto-3d-models.md +1 -1
  50. package/skills/incanto-assets.md +10 -1
  51. package/skills/incanto-audio.md +21 -13
  52. package/skills/incanto-behaviors-and-scripts.md +44 -3
  53. package/skills/incanto-building-2d-games.md +32 -4
  54. package/skills/incanto-building-3d-games.md +1 -1
  55. package/skills/incanto-editor.md +1 -1
  56. package/skills/incanto-gameplay-behaviors.md +39 -2
  57. package/skills/incanto-hud.md +5 -3
  58. package/skills/incanto-localization.md +7 -0
  59. package/skills/incanto-node-reference.md +12 -0
  60. package/skills/incanto-physics-and-input.md +23 -2
  61. package/skills/incanto-scene-json-authoring.md +6 -1
  62. package/skills/incanto-verifying-your-game.md +31 -1
  63. package/templates-app/beacon-isle-3d/package.json +1 -1
  64. package/templates-app/platformer-2d/package.json +1 -1
  65. package/templates-app/star-survivor/package.json +1 -1
  66. package/templates-app/tps-3d/package.json +1 -1
  67. package/templates-app/village-quest-3d/package.json +1 -1
  68. package/dist/particle-sim-C5OfBbmU.d.ts +0 -77
@@ -14,7 +14,7 @@
14
14
  "@dimforge/rapier2d-compat": "0.19.3",
15
15
  "@dimforge/rapier3d-compat": "0.19.3",
16
16
  "@pixiv/three-vrm": "^3.5.3",
17
- "incanto": "^0.60.0",
17
+ "incanto": "^0.62.0",
18
18
  "three": "^0.184.0"
19
19
  },
20
20
  "devDependencies": {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@dimforge/rapier2d-compat": "0.19.3",
14
- "incanto": "^0.60.0",
14
+ "incanto": "^0.62.0",
15
15
  "three": "^0.184.0"
16
16
  },
17
17
  "devDependencies": {
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@dimforge/rapier2d-compat": "0.19.3",
14
- "incanto": "^0.60.0",
14
+ "incanto": "^0.62.0",
15
15
  "three": "^0.184.0"
16
16
  },
17
17
  "devDependencies": {
@@ -13,7 +13,7 @@
13
13
  "@dimforge/rapier2d-compat": "0.19.3",
14
14
  "@dimforge/rapier3d-compat": "0.19.3",
15
15
  "@pixiv/three-vrm": "^3.5.3",
16
- "incanto": "^0.60.0",
16
+ "incanto": "^0.62.0",
17
17
  "three": "^0.184.0"
18
18
  },
19
19
  "devDependencies": {
@@ -13,7 +13,7 @@
13
13
  "@dimforge/rapier2d-compat": "0.19.3",
14
14
  "@dimforge/rapier3d-compat": "0.19.3",
15
15
  "@pixiv/three-vrm": "^3.5.3",
16
- "incanto": "^0.60.0",
16
+ "incanto": "^0.62.0",
17
17
  "three": "^0.184.0"
18
18
  },
19
19
  "devDependencies": {
@@ -1,77 +0,0 @@
1
- import { a as Rng } from "./schema-CFeioQRE.js";
2
-
3
- //#region src/core/particle-sim.d.ts
4
- /**
5
- * Deterministic particle pool — pure math, renderer-agnostic, headless-
6
- * testable. 2D uses the xy plane (y-down, directionDeg 0 = +x, -90 = up);
7
- * 3D feeds the same sim with a z spread.
8
- */
9
- interface ParticleSimConfig {
10
- /** Particles per second (0 = burst-only). */
11
- rate: number;
12
- /** Seconds, [min, max]. */
13
- lifetime: [number, number];
14
- /** Initial speed, [min, max] (units/sec — px in 2D, meters in 3D). */
15
- speed: [number, number];
16
- /** Emission direction center, degrees (0 = +x, -90 = up in y-down 2D). */
17
- directionDeg: number;
18
- /** Cone width, degrees (360 = all directions). */
19
- spreadDeg: number;
20
- /** Constant acceleration (y-down in 2D). */
21
- gravity: [number, number, number];
22
- /** Exponential velocity damping per second (0 = none). */
23
- drag: number;
24
- maxParticles: number;
25
- /** Spread emission into the z axis too (3D). */
26
- spreadZ?: boolean;
27
- }
28
- interface ParticleView {
29
- x: number;
30
- y: number;
31
- z: number;
32
- vx: number;
33
- vy: number;
34
- vz: number;
35
- /** Seconds alive. */
36
- age: number;
37
- /** Total lifetime in seconds. */
38
- life: number;
39
- /** age/life in [0, 1] — drives size/color/alpha ramps. */
40
- t: number;
41
- /** Per-particle random in [0, 1) — stable for the particle's lifetime. */
42
- seed: number;
43
- }
44
- declare class ParticleSim {
45
- private readonly config;
46
- private readonly rng;
47
- private readonly data;
48
- private alive;
49
- private spawnAccumulator;
50
- private everSpawned;
51
- constructor(config: ParticleSimConfig, rng: Rng);
52
- /**
53
- * Shift every live particle — how world-space emission is done.
54
- *
55
- * The pool is in the emitter's LOCAL space, so a moving emitter drags its
56
- * whole plume with it: dust glued to a running player instead of left behind,
57
- * and the documented "move the emitter and replay" recipe for a one-shot
58
- * teleporting the previous explosion across the level. Counter-translating by
59
- * the emitter's own motion each frame leaves the particles where they were
60
- * born, exactly, and costs one pass over the live ones.
61
- */
62
- translateAll(dx: number, dy: number, dz: number): void;
63
- /** Change the emission rate LIVE (particles/sec; 0 pauses emission) — lets an
64
- * emitter toggle on/off at runtime (drift smoke, throttle flames). */
65
- setRate(rate: number): void;
66
- get count(): number;
67
- /** True when nothing is alive and at least one particle has ever spawned. */
68
- get done(): boolean;
69
- /** Spawn n particles immediately (fireworks, explosions, flashes). */
70
- burst(n: number): void;
71
- update(dt: number): void;
72
- forEach(fn: (p: ParticleView) => void): void;
73
- private spawn;
74
- private kill;
75
- }
76
- //#endregion
77
- export { ParticleSimConfig as n, ParticleView as r, ParticleSim as t };