hayao 0.1.0 → 0.3.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 (106) hide show
  1. package/README.md +127 -21
  2. package/bin/create-hayao.mjs +380 -0
  3. package/bin/hayao-mcp-cli.mjs +11 -0
  4. package/dist/app/browser.d.ts +33 -2
  5. package/dist/app/game.d.ts +47 -2
  6. package/dist/app/tuning.d.ts +68 -0
  7. package/dist/art/autotile.d.ts +77 -0
  8. package/dist/art/bitmapFont.d.ts +113 -0
  9. package/dist/art/font5.d.ts +11 -0
  10. package/dist/art/palette.d.ts +79 -0
  11. package/dist/art/texture.d.ts +78 -0
  12. package/dist/audio/adaptive.d.ts +58 -0
  13. package/dist/audio/album.d.ts +16 -0
  14. package/dist/audio/analysis.d.ts +59 -0
  15. package/dist/audio/audio.d.ts +28 -0
  16. package/dist/audio/chord.d.ts +17 -0
  17. package/dist/audio/genres.d.ts +11 -0
  18. package/dist/audio/lint.d.ts +29 -0
  19. package/dist/audio/match.d.ts +38 -0
  20. package/dist/audio/music.d.ts +88 -0
  21. package/dist/audio/pcm.d.ts +54 -0
  22. package/dist/audio/quality.d.ts +28 -0
  23. package/dist/audio/reverb.d.ts +15 -0
  24. package/dist/audio/synth.d.ts +56 -0
  25. package/dist/audio/theory.d.ts +64 -0
  26. package/dist/content/campaign.d.ts +69 -0
  27. package/dist/content/dsl.d.ts +61 -0
  28. package/dist/content/generate.d.ts +78 -0
  29. package/dist/content/level.d.ts +93 -0
  30. package/dist/content/worldgraph.d.ts +73 -0
  31. package/dist/core/dmath.d.ts +22 -0
  32. package/dist/core/math.d.ts +2 -0
  33. package/dist/hayao.global.js +15 -0
  34. package/dist/index.d.ts +66 -1
  35. package/dist/index.js +9174 -835
  36. package/dist/index.js.map +4 -4
  37. package/dist/index.min.js +15 -0
  38. package/dist/input/source.d.ts +52 -1
  39. package/dist/logic/fsm.d.ts +85 -0
  40. package/dist/logic/graph.d.ts +88 -0
  41. package/dist/logic/history.d.ts +54 -0
  42. package/dist/logic/random.d.ts +32 -0
  43. package/dist/mcp.js +31225 -0
  44. package/dist/net/browser.d.ts +37 -0
  45. package/dist/net/inputBuffer.d.ts +27 -0
  46. package/dist/net/lockstep.d.ts +79 -0
  47. package/dist/net/players.d.ts +27 -0
  48. package/dist/net/protocol.d.ts +100 -0
  49. package/dist/net/rollback.d.ts +89 -0
  50. package/dist/net/room.d.ts +78 -0
  51. package/dist/net/transport.d.ts +78 -0
  52. package/dist/persist/codec.d.ts +4 -0
  53. package/dist/persist/save.d.ts +32 -0
  54. package/dist/persist/storage.d.ts +46 -0
  55. package/dist/physics/rigidBody.d.ts +104 -0
  56. package/dist/physics/rigidCollide.d.ts +16 -0
  57. package/dist/physics/rigidJoints.d.ts +65 -0
  58. package/dist/physics/rigidQueries.d.ts +15 -0
  59. package/dist/physics/rigidStep.d.ts +14 -0
  60. package/dist/procgen/cave.d.ts +21 -0
  61. package/dist/procgen/grid.d.ts +21 -0
  62. package/dist/procgen/rooms.d.ts +34 -0
  63. package/dist/procgen/scatter.d.ts +32 -0
  64. package/dist/procgen/terrain.d.ts +24 -0
  65. package/dist/rasterize-worker-lite.mjs +13 -0
  66. package/dist/render/canvas.d.ts +6 -1
  67. package/dist/render/commands.d.ts +46 -0
  68. package/dist/render/nineSlice.d.ts +32 -0
  69. package/dist/render/paint.d.ts +33 -0
  70. package/dist/render/renderer.d.ts +22 -0
  71. package/dist/render/svg.d.ts +4 -1
  72. package/dist/render/svgString.d.ts +6 -2
  73. package/dist/scene/cameraController.d.ts +42 -0
  74. package/dist/scene/floatingText.d.ts +51 -0
  75. package/dist/scene/node.d.ts +17 -4
  76. package/dist/scene/nodes.d.ts +14 -0
  77. package/dist/scene/parallax.d.ts +15 -0
  78. package/dist/scene/particles.d.ts +64 -0
  79. package/dist/scene/pool.d.ts +16 -0
  80. package/dist/scene/tween.d.ts +26 -0
  81. package/dist/studio/mcpMain.d.ts +1 -0
  82. package/dist/studio/mcpServer.d.ts +2 -0
  83. package/dist/studio/record.d.ts +54 -0
  84. package/dist/studio/run.d.ts +78 -0
  85. package/dist/studio/session.d.ts +80 -0
  86. package/dist/studio/timeline.d.ts +35 -0
  87. package/dist/studio/vitePlugin.d.ts +6 -0
  88. package/dist/studio-plugin.js +228 -0
  89. package/dist/ui/overlay.d.ts +6 -0
  90. package/dist/ui/transition.d.ts +107 -0
  91. package/dist/verify/audioFilmstrip.d.ts +39 -0
  92. package/dist/verify/ethnography.d.ts +67 -0
  93. package/dist/verify/gates.d.ts +160 -0
  94. package/dist/verify/layout.d.ts +66 -0
  95. package/dist/verify/ramp.d.ts +40 -0
  96. package/dist/world.d.ts +38 -2
  97. package/dist-studio/assets/index-C7tty_Wo.js +109 -0
  98. package/dist-studio/assets/index-CM3tjRQo.css +1 -0
  99. package/dist-studio/index.html +18 -0
  100. package/docs/API.md +473 -10
  101. package/docs/CONVENTIONS.md +223 -0
  102. package/docs/EMBED.md +85 -0
  103. package/docs/QUICKSTART.md +129 -0
  104. package/docs/STUDIO.md +97 -0
  105. package/docs/VERIFICATION.md +226 -0
  106. package/package.json +66 -11
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './core/math';
2
+ export * from './core/dmath';
2
3
  export * from './core/rng';
3
4
  export * from './core/clock';
4
5
  export * from './core/events';
@@ -6,8 +7,12 @@ export * from './core/hash';
6
7
  export * from './scene/node';
7
8
  export { Node as Node2D } from './scene/node';
8
9
  export * from './scene/nodes';
10
+ export * from './scene/cameraController';
11
+ export * from './scene/parallax';
12
+ export * from './scene/pool';
9
13
  export * from './scene/tween';
10
14
  export * from './scene/particles';
15
+ export * from './scene/floatingText';
11
16
  export * from './scene/registry';
12
17
  export * from './input/actions';
13
18
  export * from './input/source';
@@ -16,28 +21,88 @@ export * from './physics/aabb';
16
21
  export * from './physics/platformer';
17
22
  export * from './physics/spatialHash';
18
23
  export * from './physics/raycast';
24
+ export * from './physics/rigidBody';
25
+ export * from './physics/rigidCollide';
26
+ export * from './physics/rigidJoints';
27
+ export * from './physics/rigidStep';
28
+ export * from './physics/rigidQueries';
19
29
  export * from './render/commands';
30
+ export * from './render/paint';
20
31
  export * from './render/renderer';
21
32
  export * from './render/svgString';
22
33
  export * from './render/svg';
23
34
  export * from './render/canvas';
24
35
  export * from './render/headless';
36
+ export * from './render/nineSlice';
25
37
  export * from './art/palette';
26
38
  export * from './art/shapes';
39
+ export * from './art/texture';
40
+ export * from './art/font5';
41
+ export * from './art/bitmapFont';
42
+ export * from './art/autotile';
43
+ export * from './procgen/grid';
44
+ export * from './procgen/scatter';
45
+ export * from './procgen/cave';
46
+ export * from './procgen/terrain';
47
+ export * from './procgen/rooms';
27
48
  export * from './audio/audio';
49
+ export * from './audio/pcm';
50
+ export * from './audio/synth';
51
+ export * from './audio/analysis';
52
+ export * from './audio/theory';
53
+ export * from './audio/chord';
54
+ export * from './audio/reverb';
55
+ export * from './audio/music';
56
+ export * from './audio/lint';
57
+ export * from './audio/match';
58
+ export * from './audio/adaptive';
59
+ export * from './audio/quality';
60
+ export * from './audio/genres';
61
+ export * from './audio/album';
28
62
  export * from './ui/overlay';
29
63
  export * from './ui/settings';
30
64
  export * from './ui/shell';
65
+ export * from './ui/transition';
31
66
  export * from './verify/solver';
32
67
  export * from './verify/determinism';
33
68
  export * from './verify/playthrough';
34
69
  export * from './verify/capture';
35
70
  export * from './verify/driver';
36
71
  export * from './verify/bot';
72
+ export * from './verify/layout';
37
73
  export * from './verify/feel';
74
+ export * from './verify/gates';
75
+ export * from './verify/ramp';
38
76
  export * from './verify/filmstrip';
77
+ export * from './verify/audioFilmstrip';
78
+ export * from './verify/ethnography';
79
+ export * from './logic/fsm';
80
+ export * from './logic/random';
81
+ export * from './logic/graph';
82
+ export * from './logic/history';
83
+ export * from './persist/storage';
84
+ export * from './persist/codec';
85
+ export * from './persist/save';
86
+ export * from './content/dsl';
87
+ export * from './content/level';
88
+ export * from './content/generate';
89
+ export * from './content/campaign';
90
+ export * from './content/worldgraph';
91
+ export * from './net/players';
92
+ export * from './net/protocol';
93
+ export * from './net/transport';
94
+ export * from './net/inputBuffer';
95
+ export * from './net/lockstep';
96
+ export * from './net/rollback';
97
+ export * from './net/room';
98
+ export * from './net/browser';
39
99
  export * from './world';
40
100
  export * from './app/game';
101
+ export * from './app/tuning';
41
102
  export * from './app/browser';
103
+ export * from './studio/session';
104
+ export * from './studio/record';
105
+ export * from './studio/timeline';
106
+ export * from './studio/run';
42
107
  /** Engine version. */
43
- export declare const VERSION = "0.1.0";
108
+ export declare const VERSION = "0.3.0";