incanto 0.59.0 → 0.60.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.
- package/bin/incanto-check.mjs +45 -4
- package/dist/2d.js +3 -3
- package/dist/3d.js +3 -3
- package/dist/{create-game-BiW8Men_.js → create-game-BCm38FJV.js} +4 -4
- package/dist/{create-game-CHDLDQsQ.js → create-game-ClnIb_M5.js} +4 -4
- package/dist/{environment-presets-DRAz5EV9.js → environment-presets-8cjF3t6w.js} +1 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +3 -3
- package/dist/net.js +1 -1
- package/dist/{physics-2d-BaRSRrrZ.js → physics-2d-DqdVp1bt.js} +1 -1
- package/dist/{physics-3d-CYxjh-HW.js → physics-3d-BP0DZb_1.js} +1 -1
- package/dist/react.js +1 -1
- package/dist/{register-BpFcgdcL.js → register-BSu2dWGC.js} +1 -1
- package/dist/{register-CDrAQqPp.js → register-Da3hXh2H.js} +47 -5
- package/dist/{replay-O-yAGM76.d.ts → replay-BCMK_VRP.d.ts} +14 -1
- package/dist/{replay-CEPyQtF_.js → replay-BlNuIDdg.js} +13 -9
- package/dist/{split-screen-DDMZutQ6.js → split-screen-CL5Yvxse.js} +1 -1
- package/dist/{src-CY21B462.js → src-DFpXBMJN.js} +1 -1
- package/dist/{teardown-RApWnM1G.js → teardown-CTTwhWSe.js} +1 -1
- package/dist/{test-DHYuFyAu.js → test-BeZ95pqw.js} +14 -10
- package/dist/test.d.ts +17 -1
- package/dist/test.js +2 -2
- package/dist/vite.js +2 -2
- package/editor/assets/{agent8-BoRGtVxK.js → agent8-DSJries_.js} +1 -1
- package/editor/assets/{debug-CzdyCg75.js → debug-D15Wi5TO.js} +1 -1
- package/editor/assets/{index-VesuVEhe.js → index-BjC88k97.js} +3 -3
- package/editor/index.html +1 -1
- package/package.json +1 -1
- package/skills/incanto-localization.md +24 -0
- package/templates-app/beacon-isle-3d/package.json +1 -1
- package/templates-app/platformer-2d/package.json +1 -1
- package/templates-app/star-survivor/package.json +1 -1
- package/templates-app/tps-3d/package.json +1 -1
- package/templates-app/village-quest-3d/package.json +1 -1
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-BjC88k97.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="./assets/GameServer-C56iOUgF.js">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -99,6 +99,30 @@ banner.show(this.engine.t('hud.wave', { n: this.wave }));
|
|
|
99
99
|
slot; a scene-JSON prop has no params to fill it from. A slot with no matching
|
|
100
100
|
param is left alone rather than blanked.
|
|
101
101
|
|
|
102
|
+
## Checking a translation without a browser
|
|
103
|
+
|
|
104
|
+
No headless check could see a translated string: a capture printed
|
|
105
|
+
`text="@t:menu.start"`, byte-identical in every language, so a green report
|
|
106
|
+
proved nothing. Two things fix that.
|
|
107
|
+
|
|
108
|
+
`runScript` takes a **`locale`** — the whole run happens in that language:
|
|
109
|
+
|
|
110
|
+
```ts
|
|
111
|
+
const ko = await runScript(sceneJson, { durationMs: 2000, locale: 'ko' });
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
And a capture records what a widget actually **paints**, beside the prop that
|
|
115
|
+
produced it:
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
/Root/Hud/Start UiText paints="시작" text="@t:menu.start"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
`paints=` appears only when the words differ from the prop, so a game that
|
|
122
|
+
localizes nothing sees no extra noise. Put a `locale` run in your `verify.ts`
|
|
123
|
+
next to the English one and a broken translation fails the harness instead of
|
|
124
|
+
waiting for someone to open the page.
|
|
125
|
+
|
|
102
126
|
## The language picker
|
|
103
127
|
|
|
104
128
|
One node. Do not build your own.
|