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/dist/3d.d.ts +1 -1
- package/dist/3d.js +3 -3
- package/dist/{create-game-CMS7DiPi.js → create-game-DiTq3-fQ.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/{physics-3d-CXOBOUKG.js → physics-3d-DmNCeh58.js} +1 -1
- package/dist/react.js +1 -1
- package/dist/{register-02aSywx2.js → register-BRy8FNox.js} +11 -10
- package/dist/test.js +3 -3
- package/editor/assets/{agent8-DUVZGcuO.js → agent8-DryTXVd4.js} +1 -1
- package/editor/assets/{index-DsM2Yp9F.js → index-N8se-PhP.js} +36 -36
- package/editor/index.html +1 -1
- package/package.json +1 -1
- package/skills/incanto-building-3d-games.md +2 -2
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-
|
|
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
|
@@ -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 —
|
|
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
|
|
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
|