incanto 0.4.2 → 0.4.3

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.
package/editor/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Incanto Scene Editor</title>
7
7
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect width='16' height='16' rx='3' fill='%236ee7dc'/><text x='8' y='12' text-anchor='middle' font-size='11' font-family='monospace' fill='%230e1018'>i</text></svg>" />
8
- <script type="module" crossorigin src="./assets/index-DsM2Yp9F.js"></script>
8
+ <script type="module" crossorigin src="./assets/index-N8se-PhP.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="./assets/GameServer-C56iOUgF.js">
10
10
  <link rel="stylesheet" crossorigin href="./assets/index-DF3tMeKJ.css">
11
11
  </head>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incanto",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Vibe-coding-first web game engine SDK — JSON-driven scenes on three.js",
5
5
  "keywords": [
6
6
  "game-engine",
@@ -75,7 +75,7 @@ billboard spin. `Sprite3D`:
75
75
  |---|---|---|
76
76
  | `texture` | `""` | image URL (sampled sRGB, tinted by `tint`); empty = hidden |
77
77
  | `size` | `[1,1]` | quad `[width, height]` in world METERS (not pixels) |
78
- | `billboard` | `"y"` | `"y"` upright — yaws to face the camera, stays vertical when you look down (characters, props) · `"full"` always faces the camera (items, FX) · `"none"` fixed to the node's own rotation |
78
+ | `billboard` | `"y"` | `"y"` upright — screen-aligned yaw: every sprite shares the camera heading, so off-center sprites never ROLL under a pitched camera (characters, props) · `"full"` always faces the camera (items, FX) · `"none"` fixed to the node's own rotation |
79
79
  | `anchor` | `[0.5,0]` | which point of the sprite sits at the node origin (0..1). `[0.5,0]` = bottom-center → the FEET stand on the ground; `[0.5,0.5]` = center |
80
80
  | `tint` | `"#ffffff"` | multiplies the texture (near-white keeps original colors) |
81
81
  | `opacity` | `1` | `< 1` turns on alpha blending |
@@ -117,7 +117,7 @@ number is a canvas-rendered texture on a child `Sprite3D`.)
117
117
 
118
118
  | Prop | Default | Notes |
119
119
  |---|---|---|
120
- | `mode` | `"screen"` | `"screen"` copies the camera's orientation wholesale (screen-aligned) — a child rectangle projects as an **upright rectangle anywhere on screen** · `"y"` stays vertical and only yaws toward the camera (standing content) · `"none"` billboarding off — the authored rotation applies again |
120
+ | `mode` | `"screen"` | `"screen"` copies the camera's orientation wholesale (screen-aligned) — a child rectangle projects as an **upright rectangle anywhere on screen** · `"y"` stays vertical with a screen-aligned yaw no off-center roll (standing content) · `"none"` billboarding off — the authored rotation applies again |
121
121
 
122
122
  - Use `"screen"` for flat UI shapes (bars, plates). A yaw-only look-at — the
123
123
  tempting hand-rolled version — visibly TILTS off-center shapes when the camera