Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

feat(templates): ship a complete playable ad starter

yhh878024cde4e9
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3507e0072..aeff81919 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -63,6 +63,13 @@ jobs:
node pipeline/bin/estella.mjs export examples/playable-ad --profile "$playable_network" --wasm build/wasm/web --out "output/playable-ci-export-$playable_network" --json "output/playable-ci-export-$playable_network.json" || exit 1
node tools/verify-playable.mjs "output/playable-ci-export-$playable_network/index.html" --report "output/playable-ci-export-$playable_network.json" --scenario examples/playable-ad/playable-check.json --out "output/playable-ci-check-$playable_network" --store-url https://example.com/store || exit 1
done
+ - name: Export and check the complete playable starter in eight local network mocks
+ shell: bash
+ run: |
+ for playable_network in mintegral unity applovin mraid tiktok pangle google meta; do
+ node pipeline/bin/estella.mjs export templates/playable-ad --profile "$playable_network" --wasm build/wasm/web --out "output/playable-template-ci-export-$playable_network" --json "output/playable-template-ci-export-$playable_network.json" || exit 1
+ node tools/verify-playable.mjs "output/playable-template-ci-export-$playable_network/index.html" --report "output/playable-template-ci-export-$playable_network.json" --scenario templates/playable-ad/playable-check.json --out "output/playable-template-ci-check-$playable_network" --store-url https://example.com/store || exit 1
+ done
- name: Check authored Poki gameplay and the standalone example in SDK mocks
run: |
node pipeline/bin/estella.mjs export examples/mobile-controls --profile poki --wasm build/wasm/web --out output/poki-training-ci-export --json output/poki-training-ci-export.json
@@ -117,6 +124,13 @@ jobs:
name: youtube-training-local-mock-checks
path: output/youtube-training-ci-*
retention-days: 3
+ - name: Upload complete playable starter local mock observations
+ if: always()
+ uses: actions/upload-artifact@v7
+ with:
+ name: playable-template-local-mock-checks
+ path: output/playable-template-ci-*
+ retention-days: 3
# The engine binaries, and nothing else: every gate below waits on this job, so
# a step here that no downstream job reads is a delay on all of them.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9cfdb2b86..34d363d3c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,8 @@ published separately; it ships inside the editor.
### Added
+- **The Playable Ad starter includes a complete editable game.** New projects receive CC0 space art, three-ship selection, completion, replay and an explicit store button instead of a tap-anywhere redirect. Eight named network profiles, a configurable MRAID destination, licenses, a portrait/landscape headless scenario and a creation-to-submission guide ship together. Local mocks and size checks remain separate from official network approval and external publication exercises.
+
- **YouTube headless checks enforce the documented hosting policy.** Training runs under the official CSP response header as well as its exported policy. Unexpected violations fail the check; an intentionally blocked external request proves that enforcement and reporting work. The publishing guide links the independent official bundle analyzer. SDK Test Suite and device acceptance remain separate.
- **YouTube exports check stored bundle constraints.** Exports reject total packages at or above 250 MiB, individual files at or above 30 MiB, more than 8000 files and unsupported filenames. Cloud envelopes at exactly 3 MiB are rejected before staging. Recommendations and static initial-content estimates appear as warnings in both CLI and editor export results. Headless observations record local ready time and startup heap samples without claiming official transfer, peak heap or device certification.
diff --git a/desktop b/desktop
index 84633e5ad..a129ea9ad 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 84633e5adb0a3ec64e009a1f99393c22e70a2b8c
+Subproject commit a129ea9add5c70029afc08beee174d3d51403fa6
diff --git a/docs/astro/src/content/docs/publishing/overview.mdx b/docs/astro/src/content/docs/publishing/overview.mdx
index d0c3fd79b..02ae1d59f 100644
--- a/docs/astro/src/content/docs/publishing/overview.mdx
+++ b/docs/astro/src/content/docs/publishing/overview.mdx
@@ -126,6 +126,17 @@ number to trust.
For Mintegral, call `playableGameEnd()` on a win or loss and `playableRetry()` when the player restarts. The runtime calls `gameReady()` after startup finishes and responds to `gameStart()` / `gameClose()`. Keep installation tied to a user gesture through `playableCta()`. See the `playable-ad` example and [official container checker](https://www.playturbo.com/review). Passing that checker does not replace campaign approval or device acceptance.
+For a complete starting project, choose **Playable Ad** under Templates in the
+launcher. It copies an editable fleet-selection game with CC0 art, explicit
+installation, completion and replay, eight named export profiles, asset licenses
+and a portrait/landscape headless scenario. Follow the copied `README.md` from
+creation through export and platform submission. Configure your own store URL
+in `src/config.ts` for MRAID, or the campaign/container destination for other
+networks. An unrelated preview URL is never shipped as your app destination.
+Use the new project's `playable-check.json` with the verifier commands below.
+Official previews, device testing and external developer publication exercises
+remain separate from local checks.
+
MRAID store buttons must pass a destination with `playableCta(storeUrl)` or use a host-provided `window.clickTag`. HTTP(S), Android `market:` and iOS `itms-apps:` links are supported. Missing or invalid destinations produce a configuration warning without calling `mraid.open`. Other networks continue using their own store hooks.
Playable exports include `playableCheck` in their result; the package dialog displays it and the CLI can save it with `--json report.json`. Checks measure the actual delivered file, identify HTML/CSS resource references and validate required orientation config. Exact mandatory host SDK scripts are allowed by the selected profile. File hashes tie the findings to this export. CTA, host lifecycle, dynamic requests and device/network acceptance remain pending runtime verification. The report does not claim that a bridge declaration proves a successful store click.
diff --git a/docs/astro/src/content/docs/zh-cn/publishing/overview.mdx b/docs/astro/src/content/docs/zh-cn/publishing/overview.mdx
index 22545e516..2dc59add0 100644
--- a/docs/astro/src/content/docs/zh-cn/publishing/overview.mdx
+++ b/docs/astro/src/content/docs/zh-cn/publishing/overview.mdx
@@ -110,6 +110,14 @@ playableCta();
Mintegral 中,胜负结束时调用 `playableGameEnd()`,玩家重玩时调用 `playableRetry()`。运行时在启动完成后调用 `gameReady()`,并响应 `gameStart()` / `gameClose()`;安装按钮通过用户手势调用 `playableCta()`。参见 `playable-ad` 示例和[官方容器检测工具](https://www.playturbo.com/review)。检测通过仍需广告审核和真机验收。
+需要完整起点时,在启动器的 Templates 中选择 **Playable Ad**。新项目包含
+可编辑的选船小关卡、CC0 美术、明确的安装按钮、完成与重玩、八个导出档、
+素材许可和横竖屏无头检查场景。按复制后的 `README.md` 连续完成创建、
+导出、自检与平台提交。MRAID 的真实商店地址填写在 `src/config.ts`;其他
+渠道在活动或容器中配置自己的目标,模板不携带无关应用的商店地址。
+下方验证器命令的场景路径改为新项目中的 `playable-check.json`。
+官方预览、真机测试与外部开发者独立发布演练仍需单独验收。
+
MRAID 安装按钮须通过 `playableCta(storeUrl)` 传入目标地址,或由宿主提供 `window.clickTag`。支持 HTTP(S)、Android `market:` 和 iOS `itms-apps:` 商店链接;地址缺失或无效时提示配置问题,不调用 `mraid.open`。其他网络继续使用自己的商店接口。
试玩导出结果包含 `playableCheck`,打包窗口可查看,命令行可通过 `--json report.json` 保存。报告测量实际交付文件,检查 HTML/CSS 资源引用及必需的方向配置;只按所选 profile 放行指定的宿主 SDK 脚本。文件哈希将检查结果对应到本次导出。CTA、宿主生命周期、动态请求和设备/平台验收保持待运行验证,不把接口声明算作商店跳转成功。
diff --git a/templates/playable-ad/ASSET_LICENSES.md b/templates/playable-ad/ASSET_LICENSES.md
new file mode 100644
index 000000000..d17dc1c02
--- /dev/null
+++ b/templates/playable-ad/ASSET_LICENSES.md
@@ -0,0 +1,34 @@
+# Asset licenses
+
+`assets/textures/ship_K.png`, `star_tiny.png`, and `station_C.png` are unmodified default-resolution images from Kenney Simple Space 1.0.
+
+- Source: https://kenney.nl/assets/simple-space
+- License: https://creativecommons.org/publicdomain/zero/1.0/
+
+
+
+## Original license
+
+```text
+Simple Space
+
+ Created/distributed by Kenney (www.kenney.nl)
+ Creation date: 03-03-2021
+
+ ------------------------------
+
+ License: (Creative Commons Zero, CC0)
+ http://creativecommons.org/publicdomain/zero/1.0/
+
+ This content is free to use in personal, educational and commercial projects.
+
+ Support us by crediting Kenney or www.kenney.nl (this is not mandatory)
+
+ ------------------------------
+
+ Donate: http://support.kenney.nl
+ Patreon: http://patreon.com/kenney/
+
+ Follow on Twitter for updates:
+ http://twitter.com/KenneyNL
+```
diff --git a/templates/playable-ad/README.md b/templates/playable-ad/README.md
new file mode 100644
index 000000000..8d07048c0
--- /dev/null
+++ b/templates/playable-ad/README.md
@@ -0,0 +1,77 @@
+# Playable Ad starter
+
+A complete, editable fleet-selection game. Tap each of the three ships to finish,
+then choose Try Again to reset. The persistent store button is the only place
+that calls the ad network's destination; tapping the scene never opens a store.
+The responsive Canvas supports portrait and landscape containers. The scene
+and CC0 art are editable, with sources in [ASSET_LICENSES.md](ASSET_LICENSES.md).
+
+## Create and customize
+
+Choose **Playable Ad** under Templates in the launcher and create a project in
+your own directory. The launcher copies the scene, scripts, artwork, named
+export profiles, license list and headless scenario. Keep your project outside
+the engine checkout. No editor window is needed for the CLI steps below.
+
+Change the title and artwork in `assets/scenes/main.esscene`. The three ships,
+score label and Canvas are named because `src/main.ts` finds them by name;
+preserve those names when reskinning, or update the matching script. Edit the
+win rule and completion text in that script. It sends one `playableGameEnd()`
+per completed round and `playableRetry()` only after an explicit completed-round
+restart. Ordinary clicks do not call a host directly.
+
+For MRAID-family networks, set **your app's** HTTP(S), `market:` or `itms-apps:`
+destination in `src/config.ts`, or configure the container's `clickTag`.
+An empty destination does not point to a sample app: the bridge reports missing
+configuration and refuses to open. Mintegral and the other host-directed
+networks obtain the destination from your campaign settings. Configure those
+in the real ad platform before submission.
+
+## Export and check
+
+From the engine repository, substitute the absolute path of your new project:
+
+```sh
+node pipeline/bin/estella.mjs export /path/to/my-project --profile mintegral --out output/my-ad --json output/my-ad.json
+node tools/verify-playable.mjs output/my-ad/index.html --report output/my-ad.json --scenario /path/to/my-project/playable-check.json --out output/my-ad-check --store-url https://example.com/store
+```
+
+Node 20+ and Playwright Chromium are needed for the headless verifier. Install
+Chromium once with `pnpm exec playwright install chromium`. The example URL
+above is solely an offline mock destination: the verifier records it and does
+not open a store. Use your actual destination in project/campaign settings.
+
+Named profiles are `mintegral`, `mraid`, `unity`, `applovin`, `tiktok`, `pangle`,
+`google` and `meta`. Export the one your campaign uses, inspect `ok` and
+`playableCheck` in the JSON report, and retain the runtime check and screenshots.
+The export checks the network's delivery budget, SDK placement, orientation
+configuration and static external references. The headless scenario exercises
+real mouse gestures, three selections, completion, hide/show, blocked hidden
+input, CTA and replay where that network exposes those events.
+
+Web preview has no ad bridge and the button says AD PREVIEW. For a Web build,
+use `--platform web` without a named ad profile. A local scene is useful for
+authoring, but its store behavior is not ad-container acceptance.
+
+## Submit to the platform
+
+Use the produced delivery file for the selected profile (`index.html` or
+`index.zip`, as the export report specifies). Confirm your real destination,
+orientation, campaign configuration and allowed SDK version in the platform.
+Run its official preview/test tool and test target devices before submitting.
+Pangle here means overseas Pangle; it is not domestic 穿山甲 or Douyin.
+
+Local SDK mocks, static budget checks and host events are recorded separately
+from ad-network approval. Save official test results and device observations
+with your campaign. This template has no account credentials, published app
+destination or claim of official approval; external developer publication
+exercises remain a roadmap acceptance step.
+
+## Contents
+
+- `assets/scenes/main.esscene`: authored UI, textures and selectable ships.
+- `assets/textures`: unmodified Kenney Simple Space CC0 artwork.
+- `src/main.ts`: selection, completion, explicit store gesture and replay.
+- `src/config.ts`: your store destination.
+- `playable-check.json`: declarative portrait/landscape headless scenario.
+- `ASSET_LICENSES.md`: asset provenance and original license.
diff --git a/templates/playable-ad/assets/scenes/main.esscene b/templates/playable-ad/assets/scenes/main.esscene
index 617cd6154..1b2a33871 100644
--- a/templates/playable-ad/assets/scenes/main.esscene
+++ b/templates/playable-ad/assets/scenes/main.esscene
@@ -7,6 +7,7 @@
"name": "Camera",
"parent": null,
"children": [],
+ "visible": true,
"components": [
{
"type": "Transform",
@@ -22,21 +23,50 @@
"type": "Camera",
"data": {
"projectionType": 1,
- "orthoSize": 640.0,
+ "orthoSize": 300,
"isActive": true,
"priority": 0
}
}
- ],
- "visible": true
+ ]
},
{
"id": 1,
"name": "Canvas",
"parent": null,
"children": [
- 2
+ 2,
+ 3,
+ 4,
+ 5,
+ 6,
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 12,
+ 13,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 19,
+ 20,
+ 21,
+ 22,
+ 23,
+ 24,
+ 25,
+ 26,
+ 27,
+ 28,
+ 29,
+ 30,
+ 31
],
+ "visible": true,
"components": [
{
"type": "Transform",
@@ -46,33 +76,24 @@
"type": "Canvas",
"data": {
"designResolution": {
- "x": 720,
- "y": 1280
+ "x": 600,
+ "y": 600
},
- "scaleMode": 2,
- "backgroundColor": {
- "r": 0.07,
- "g": 0.08,
- "b": 0.11,
- "a": 1
- }
+ "scaleMode": 2
}
},
{
"type": "UINode",
"data": {}
}
- ],
- "visible": true
+ ]
},
{
"id": 2,
- "name": "Center",
+ "name": "Space backdrop",
"parent": 1,
- "children": [
- 3,
- 4
- ],
+ "children": [],
+ "visible": true,
"components": [
{
"type": "Transform",
@@ -82,52 +103,183 @@
"type": "UINode",
"data": {
"position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 0
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 0
+ },
"width": {
- "value": 80,
- "unit": 1
+ "unit": 1,
+ "value": 100
},
"height": {
- "value": 200,
- "unit": 0
+ "unit": 1,
+ "value": 100
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": 0
},
+ "marginTop": {
+ "unit": 0,
+ "value": 0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 1,
+ "color": {
+ "r": 0.045,
+ "g": 0.065,
+ "b": 0.11,
+ "a": 1
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 3,
+ "name": "Star 00",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
"insetLeft": {
- "value": 50,
- "unit": 1
+ "unit": 1,
+ "value": 5
},
"insetTop": {
- "value": 50,
- "unit": 1
+ "unit": 1,
+ "value": 5
+ },
+ "width": {
+ "unit": 0,
+ "value": 5
+ },
+ "height": {
+ "unit": 0,
+ "value": 5
},
"marginLeft": {
- "value": -40,
- "unit": 1
+ "unit": 0,
+ "value": -2.5
},
"marginTop": {
- "value": -100,
- "unit": 0
+ "unit": 0,
+ "value": -2.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
}
}
+ }
+ ]
+ },
+ {
+ "id": 4,
+ "name": "Star 01",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 42
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 28
+ },
+ "width": {
+ "unit": 0,
+ "value": 6
+ },
+ "height": {
+ "unit": 0,
+ "value": 6
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "pointerEvents": 1
+ }
},
{
- "type": "FlexContainer",
+ "type": "UIVisual",
"data": {
- "direction": 1,
- "justifyContent": 1,
- "alignItems": 1,
- "gap": {
- "x": 0,
- "y": 18
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
}
}
}
- ],
- "visible": true
+ ]
},
{
- "id": 3,
- "name": "Title",
- "parent": 2,
+ "id": 5,
+ "name": "Star 02",
+ "parent": 1,
"children": [],
+ "visible": true,
"components": [
{
"type": "Transform",
@@ -136,36 +288,128 @@
{
"type": "UINode",
"data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 79
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 51
+ },
+ "width": {
+ "unit": 0,
+ "value": 7
+ },
"height": {
- "value": 48,
- "unit": 0
+ "unit": 0,
+ "value": 7
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
}
}
+ }
+ ]
+ },
+ {
+ "id": 6,
+ "name": "Star 03",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
},
{
- "type": "Text",
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 26
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 74
+ },
+ "width": {
+ "unit": 0,
+ "value": 8
+ },
+ "height": {
+ "unit": 0,
+ "value": 8
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
"data": {
- "content": "Tap to play",
- "fontSize": 40,
- "bold": true,
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
"color": {
- "r": 1,
- "g": 1,
- "b": 1,
- "a": 1
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
},
- "align": 1,
- "verticalAlign": 1
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
}
}
- ],
- "visible": true
+ ]
},
{
- "id": 4,
- "name": "Hint",
- "parent": 2,
+ "id": 7,
+ "name": "Star 04",
+ "parent": 1,
"children": [],
+ "visible": true,
"components": [
{
"type": "Transform",
@@ -174,29 +418,1587 @@
{
"type": "UINode",
"data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 63
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 7
+ },
+ "width": {
+ "unit": 0,
+ "value": 5
+ },
"height": {
- "value": 28,
- "unit": 0
+ "unit": 0,
+ "value": 5
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
}
}
+ }
+ ]
+ },
+ {
+ "id": 8,
+ "name": "Star 05",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
},
{
- "type": "Text",
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 10
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 30
+ },
+ "width": {
+ "unit": 0,
+ "value": 6
+ },
+ "height": {
+ "unit": 0,
+ "value": 6
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
"data": {
- "content": "One scene, one tap, one call to action.",
- "fontSize": 22,
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
"color": {
- "r": 0.65,
+ "r": 0.55,
"g": 0.7,
- "b": 0.78,
- "a": 1
+ "b": 0.9,
+ "a": 0.6
},
- "align": 1,
- "verticalAlign": 1
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
}
}
- ],
- "visible": true
+ ]
+ },
+ {
+ "id": 9,
+ "name": "Star 06",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 47
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 53
+ },
+ "width": {
+ "unit": 0,
+ "value": 7
+ },
+ "height": {
+ "unit": 0,
+ "value": 7
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 10,
+ "name": "Star 07",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 84
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 76
+ },
+ "width": {
+ "unit": 0,
+ "value": 8
+ },
+ "height": {
+ "unit": 0,
+ "value": 8
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 11,
+ "name": "Star 08",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 31
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 9
+ },
+ "width": {
+ "unit": 0,
+ "value": 5
+ },
+ "height": {
+ "unit": 0,
+ "value": 5
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 12,
+ "name": "Star 09",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 68
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 32
+ },
+ "width": {
+ "unit": 0,
+ "value": 6
+ },
+ "height": {
+ "unit": 0,
+ "value": 6
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 13,
+ "name": "Star 10",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 15
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 55
+ },
+ "width": {
+ "unit": 0,
+ "value": 7
+ },
+ "height": {
+ "unit": 0,
+ "value": 7
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 14,
+ "name": "Star 11",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 52
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 78
+ },
+ "width": {
+ "unit": 0,
+ "value": 8
+ },
+ "height": {
+ "unit": 0,
+ "value": 8
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 15,
+ "name": "Star 12",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 89
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 11
+ },
+ "width": {
+ "unit": 0,
+ "value": 5
+ },
+ "height": {
+ "unit": 0,
+ "value": 5
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 16,
+ "name": "Star 13",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 36
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 34
+ },
+ "width": {
+ "unit": 0,
+ "value": 6
+ },
+ "height": {
+ "unit": 0,
+ "value": 6
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 17,
+ "name": "Star 14",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 73
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 57
+ },
+ "width": {
+ "unit": 0,
+ "value": 7
+ },
+ "height": {
+ "unit": 0,
+ "value": 7
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 18,
+ "name": "Star 15",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 20
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 80
+ },
+ "width": {
+ "unit": 0,
+ "value": 8
+ },
+ "height": {
+ "unit": 0,
+ "value": 8
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 19,
+ "name": "Star 16",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 57
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 13
+ },
+ "width": {
+ "unit": 0,
+ "value": 5
+ },
+ "height": {
+ "unit": 0,
+ "value": 5
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 20,
+ "name": "Star 17",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 94
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 36
+ },
+ "width": {
+ "unit": 0,
+ "value": 6
+ },
+ "height": {
+ "unit": 0,
+ "value": 6
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 21,
+ "name": "Star 18",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 41
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 59
+ },
+ "width": {
+ "unit": 0,
+ "value": 7
+ },
+ "height": {
+ "unit": 0,
+ "value": 7
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 22,
+ "name": "Star 19",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 78
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 82
+ },
+ "width": {
+ "unit": 0,
+ "value": 8
+ },
+ "height": {
+ "unit": 0,
+ "value": 8
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -4.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 23,
+ "name": "Star 20",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 25
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 15
+ },
+ "width": {
+ "unit": 0,
+ "value": 5
+ },
+ "height": {
+ "unit": 0,
+ "value": 5
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -2.5
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 24,
+ "name": "Star 21",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 62
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 38
+ },
+ "width": {
+ "unit": 0,
+ "value": 6
+ },
+ "height": {
+ "unit": 0,
+ "value": 6
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -3.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:037162af-6f6f-4aa8-998a-e8998df36333",
+ "color": {
+ "r": 0.55,
+ "g": 0.7,
+ "b": 0.9,
+ "a": 0.6
+ },
+ "uvOffset": {
+ "x": 0.375,
+ "y": 0.375
+ },
+ "uvScale": {
+ "x": 0.25,
+ "y": 0.25
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 25,
+ "name": "Title",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 50
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 14
+ },
+ "width": {
+ "unit": 0,
+ "value": 560
+ },
+ "height": {
+ "unit": 0,
+ "value": 60
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -280.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -30.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "Text",
+ "data": {
+ "content": "BUILD YOUR SPACE FLEET",
+ "fontSize": 32,
+ "align": 1,
+ "verticalAlign": 1,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 26,
+ "name": "Instructions",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 50
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 26
+ },
+ "width": {
+ "unit": 0,
+ "value": 560
+ },
+ "height": {
+ "unit": 0,
+ "value": 40
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -280.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -20.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "Text",
+ "data": {
+ "content": "Tap all three ships to prepare your fleet.",
+ "fontSize": 24,
+ "align": 1,
+ "verticalAlign": 1,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 27,
+ "name": "Ship 1",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 20
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 45
+ },
+ "width": {
+ "unit": 0,
+ "value": 120
+ },
+ "height": {
+ "unit": 0,
+ "value": 120
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -60.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -60.0
+ }
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:b6845253-c02d-4181-87c9-553cdc015943",
+ "color": {
+ "r": 0.3,
+ "g": 0.85,
+ "b": 1,
+ "a": 1
+ }
+ }
+ },
+ {
+ "type": "Interactable",
+ "data": {
+ "enabled": true,
+ "blockRaycast": true,
+ "raycastTarget": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 28,
+ "name": "Ship 2",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 50
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 45
+ },
+ "width": {
+ "unit": 0,
+ "value": 120
+ },
+ "height": {
+ "unit": 0,
+ "value": 120
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -60.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -60.0
+ }
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:b6845253-c02d-4181-87c9-553cdc015943",
+ "color": {
+ "r": 0.8,
+ "g": 0.5,
+ "b": 1,
+ "a": 1
+ }
+ }
+ },
+ {
+ "type": "Interactable",
+ "data": {
+ "enabled": true,
+ "blockRaycast": true,
+ "raycastTarget": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 29,
+ "name": "Ship 3",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 80
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 45
+ },
+ "width": {
+ "unit": 0,
+ "value": 120
+ },
+ "height": {
+ "unit": 0,
+ "value": 120
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -60.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -60.0
+ }
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:b6845253-c02d-4181-87c9-553cdc015943",
+ "color": {
+ "r": 1,
+ "g": 0.7,
+ "b": 0.25,
+ "a": 1
+ }
+ }
+ },
+ {
+ "type": "Interactable",
+ "data": {
+ "enabled": true,
+ "blockRaycast": true,
+ "raycastTarget": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 30,
+ "name": "Score",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 50
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 62
+ },
+ "width": {
+ "unit": 0,
+ "value": 560
+ },
+ "height": {
+ "unit": 0,
+ "value": 44
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -280.0
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -22.0
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "Text",
+ "data": {
+ "content": "0 / 3 SHIPS READY",
+ "fontSize": 24,
+ "align": 1,
+ "verticalAlign": 1,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ }
+ }
+ }
+ ]
+ },
+ {
+ "id": 31,
+ "name": "Station",
+ "parent": 1,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {}
+ },
+ {
+ "type": "UINode",
+ "data": {
+ "position": 1,
+ "insetLeft": {
+ "unit": 1,
+ "value": 50
+ },
+ "insetTop": {
+ "unit": 1,
+ "value": 69
+ },
+ "width": {
+ "unit": 0,
+ "value": 50
+ },
+ "height": {
+ "unit": 0,
+ "value": 50
+ },
+ "marginLeft": {
+ "unit": 0,
+ "value": -25
+ },
+ "marginTop": {
+ "unit": 0,
+ "value": -25
+ },
+ "pointerEvents": 1
+ }
+ },
+ {
+ "type": "UIVisual",
+ "data": {
+ "visualType": 2,
+ "texture": "@uuid:8b952ff9-dbbc-4aa0-8ce0-d4290801d633",
+ "color": {
+ "r": 0.6,
+ "g": 0.75,
+ "b": 1,
+ "a": 1
+ }
+ }
+ }
+ ]
}
]
}
diff --git a/templates/playable-ad/assets/scenes/main.esscene.meta b/templates/playable-ad/assets/scenes/main.esscene.meta
index 2ba514059..84622559f 100644
--- a/templates/playable-ad/assets/scenes/main.esscene.meta
+++ b/templates/playable-ad/assets/scenes/main.esscene.meta
@@ -1,8 +1,6 @@
{
- "uuid": "9d9b6178-75e7-4ae5-8cc4-1c435f7056e3",
+ "uuid": "eb2cb33e-2677-4097-a1cc-d6c58216c781",
"version": "2.0",
"type": "scene",
- "importer": {
- "autoMigrate": true
- }
+ "importer": {}
}
diff --git a/templates/playable-ad/assets/textures/ship_K.png b/templates/playable-ad/assets/textures/ship_K.png
new file mode 100644
index 000000000..761a6cc4f
Binary files /dev/null and b/templates/playable-ad/assets/textures/ship_K.png differ
diff --git a/templates/playable-ad/assets/textures/ship_K.png.meta b/templates/playable-ad/assets/textures/ship_K.png.meta
new file mode 100644
index 000000000..bc38f1938
--- /dev/null
+++ b/templates/playable-ad/assets/textures/ship_K.png.meta
@@ -0,0 +1,17 @@
+{
+ "uuid": "b6845253-c02d-4181-87c9-553cdc015943",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 2048,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "premultiplyAlpha": false,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ }
+ }
+}
diff --git a/templates/playable-ad/assets/textures/star_tiny.png b/templates/playable-ad/assets/textures/star_tiny.png
new file mode 100644
index 000000000..c0647535b
Binary files /dev/null and b/templates/playable-ad/assets/textures/star_tiny.png differ
diff --git a/templates/playable-ad/assets/textures/star_tiny.png.meta b/templates/playable-ad/assets/textures/star_tiny.png.meta
new file mode 100644
index 000000000..6b5f8e988
--- /dev/null
+++ b/templates/playable-ad/assets/textures/star_tiny.png.meta
@@ -0,0 +1,17 @@
+{
+ "uuid": "037162af-6f6f-4aa8-998a-e8998df36333",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 2048,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "premultiplyAlpha": false,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ }
+ }
+}
diff --git a/templates/playable-ad/assets/textures/station_C.png b/templates/playable-ad/assets/textures/station_C.png
new file mode 100644
index 000000000..9c7b31ace
Binary files /dev/null and b/templates/playable-ad/assets/textures/station_C.png differ
diff --git a/templates/playable-ad/assets/textures/station_C.png.meta b/templates/playable-ad/assets/textures/station_C.png.meta
new file mode 100644
index 000000000..e87537432
--- /dev/null
+++ b/templates/playable-ad/assets/textures/station_C.png.meta
@@ -0,0 +1,17 @@
+{
+ "uuid": "8b952ff9-dbbc-4aa0-8ce0-d4290801d633",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 2048,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "premultiplyAlpha": false,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ }
+ }
+}
diff --git a/templates/playable-ad/playable-check.json b/templates/playable-ad/playable-check.json
new file mode 100644
index 000000000..e5ab53ee8
--- /dev/null
+++ b/templates/playable-ad/playable-check.json
@@ -0,0 +1,18 @@
+{
+ "version": 1,
+ "description": "Local host observations only. Store hooks are mocked; this is not network/device acceptance.",
+ "viewports": [{ "width": 360, "height": 640 }, { "width": 800, "height": 400 }],
+ "steps": [
+ { "type": "click", "name": "Install from a trusted click", "x": 0.5, "y": 0.82, "expect": { "event": "store-click", "count": 1, "userActivation": true } },
+ { "type": "click", "name": "Select left ship", "x": 0.2, "y": 0.45 },
+ { "type": "click", "name": "Select middle ship", "x": 0.5, "y": 0.45 },
+ { "type": "click", "name": "Complete the fleet", "x": 0.8, "y": 0.45, "expect": { "event": "game-end", "count": 1, "networks": ["mintegral"] } },
+ { "type": "host", "name": "Hide the creative", "command": "hide", "networks": ["mraid", "unity", "applovin", "mintegral", "tiktok", "pangle"] },
+ { "type": "frozen", "name": "Hidden animation stays frozen", "ms": 250, "networks": ["mraid", "unity", "applovin", "mintegral", "tiktok", "pangle"] },
+ { "type": "click", "name": "Hidden CTA accepts no input", "x": 0.5, "y": 0.82, "expect": { "event": "store-click", "count": 0 }, "observeMs": 300, "networks": ["mraid", "unity", "applovin", "mintegral", "tiktok", "pangle"] },
+ { "type": "host", "name": "Resume the creative", "command": "show", "networks": ["mraid", "unity", "applovin", "mintegral", "tiktok", "pangle"] },
+ { "type": "click", "name": "Resumed CTA accepts a trusted click", "x": 0.5, "y": 0.82, "expect": { "event": "store-click", "count": 1, "userActivation": true }, "networks": ["mraid", "unity", "applovin", "mintegral", "tiktok", "pangle"] },
+ { "type": "click", "name": "Retry the completed game", "x": 0.5, "y": 0.96, "expect": { "event": "game-retry", "count": 1, "userActivation": true }, "networks": ["mintegral"] },
+ { "type": "snapshot", "name": "Final canvas" }
+ ]
+}
diff --git a/templates/playable-ad/project.esproject b/templates/playable-ad/project.esproject
index 23cae35d2..59256d4de 100644
--- a/templates/playable-ad/project.esproject
+++ b/templates/playable-ad/project.esproject
@@ -1,13 +1,86 @@
{
"formatVersion": "1",
"name": "Playable Ad",
- "description": "One portrait scene sized for a playable: a tap anywhere calls the CTA, and there is nothing to load.",
+ "description": "A complete CC0 fleet-selection playable with completion, replay, an explicit store button and checked network export profiles.",
"tag": "Starter",
"version": "1.0.0",
"defaultScene": "assets/scenes/main.esscene",
"designResolution": {
- "width": 720,
- "height": 1280
+ "width": 600,
+ "height": 600
},
- "spineVersion": "none"
+ "spineVersion": "none",
+ "packaging": {
+ "platforms": {
+ "playable": {
+ "network": "mintegral"
+ }
+ },
+ "profiles": {
+ "mintegral": {
+ "platforms": {
+ "playable": {
+ "network": "mintegral"
+ }
+ },
+ "platform": "playable"
+ },
+ "tiktok": {
+ "platforms": {
+ "playable": {
+ "network": "tiktok"
+ }
+ },
+ "platform": "playable"
+ },
+ "pangle": {
+ "platforms": {
+ "playable": {
+ "network": "pangle"
+ }
+ },
+ "platform": "playable"
+ },
+ "mraid": {
+ "platform": "playable",
+ "platforms": {
+ "playable": {
+ "network": "mraid"
+ }
+ }
+ },
+ "unity": {
+ "platform": "playable",
+ "platforms": {
+ "playable": {
+ "network": "unity"
+ }
+ }
+ },
+ "applovin": {
+ "platform": "playable",
+ "platforms": {
+ "playable": {
+ "network": "applovin"
+ }
+ }
+ },
+ "google": {
+ "platform": "playable",
+ "platforms": {
+ "playable": {
+ "network": "google"
+ }
+ }
+ },
+ "meta": {
+ "platform": "playable",
+ "platforms": {
+ "playable": {
+ "network": "meta"
+ }
+ }
+ }
+ }
+ }
}
diff --git a/templates/playable-ad/src/config.ts b/templates/playable-ad/src/config.ts
new file mode 100644
index 000000000..dd3e43e80
--- /dev/null
+++ b/templates/playable-ad/src/config.ts
@@ -0,0 +1,4 @@
+/** Your own store destination for MRAID-family networks.
+ * Leave empty only when the ad container supplies clickTag. Other networks use
+ * their configured host destination. Never substitute an unrelated store URL. */
+export const STORE_URL = '';
diff --git a/templates/playable-ad/src/main.ts b/templates/playable-ad/src/main.ts
index 4806da4ef..6df66a109 100644
--- a/templates/playable-ad/src/main.ts
+++ b/templates/playable-ad/src/main.ts
@@ -1,23 +1,57 @@
-import { addSystemToSchedule, Schedule, defineSystem, Res, Input } from 'esengine';
+import {
+ addStartupSystem, addSystemToSchedule, defineSystem, Res, GetWorld, Schedule, Time,
+ UIEvents, UIEventType, UIVisual, Interactable, Text, Name, createButton, px, percent,
+ playableCta, hasPlayableCta, playableGameEnd, playableRetry, type Entity,
+} from 'esengine';
+import { STORE_URL } from './config';
-/**
- * The call to action. Every ad network injects its own — MRAID's `mraid.open`,
- * or a global the host defines — so this is the ONE place to wire it, and it
- * says out loud when there is nothing to call rather than failing silently.
- */
-function callToAction(): void {
- const open = (globalThis as { mraid?: { open?: (url: string) => void } }).mraid?.open;
- if (open) open('https://example.com/your-app');
- else console.log('[playable] CTA tapped — no network host, so nothing opened.');
-}
+let selected = new Set<Entity>();
+let cta: Entity | null = null;
+let completed = false;
-// A playable is one gesture. Anywhere on the screen, any pointer.
-const tapSystem = defineSystem(
- [Res(Input)],
- (input) => {
- if (input.isMouseButtonPressed(0)) callToAction();
- },
- { name: 'TapSystem' },
-);
+addStartupSystem(defineSystem([Res(UIEvents), GetWorld()], (events, world) => {
+ const canvas = world.findEntityByName('Canvas');
+ const score = world.findEntityByName('Score');
+ if (canvas === null || score === null) return;
+ const ships = ['Ship 1', 'Ship 2', 'Ship 3'].map(name => world.findEntityByName(name)).filter((entity): entity is Entity => entity !== null);
+ const colors = ships.map(entity => ({ ...world.get(entity, UIVisual).color }));
+ const caption = (content: string) => world.insert(score, Text, { ...world.get(score, Text), content });
+ for (const entity of ships) events.on(entity, UIEventType.Click, () => {
+ if (selected.has(entity)) return;
+ selected.add(entity);
+ world.insert(entity, Interactable, { ...world.get(entity, Interactable), enabled: false });
+ world.insert(entity, UIVisual, { ...world.get(entity, UIVisual), color: { ...world.get(entity, UIVisual).color, a: 0.3 } });
+ caption(`${selected.size} / 3 SHIPS READY`);
+ if (selected.size === ships.length) {
+ completed = true; caption('FLEET READY! START YOUR ADVENTURE'); playableGameEnd();
+ }
+ });
+ const install = createButton({ world, events, parent: canvas, userGesture: true,
+ node: { position: 1, insetLeft: percent(22), insetTop: percent(75), width: percent(56), height: px(84) },
+ text: { content: hasPlayableCta() ? 'INSTALL GAME' : 'AD PREVIEW', fontSize: 28, color: { r: 0.1, g: 0.075, b: 0.14, a: 1 } },
+ background: { color: { r: 1, g: 0.66, b: 0.23, a: 1 } },
+ states: { normal: { color: { r: 1, g: 0.66, b: 0.23, a: 1 } }, hover: { color: { r: 1, g: 0.79, b: 0.4, a: 1 } },
+ pressed: { color: { r: 0.84, g: 0.48, b: 0.15, a: 1 } } },
+ onClick: () => { if (hasPlayableCta()) playableCta(STORE_URL || undefined); else caption('Export a network playable to test install.'); },
+ });
+ cta = install.entity; world.insert(cta, Name, { value: 'Install' });
+ const retry = createButton({ world, events, parent: canvas, userGesture: true,
+ node: { position: 1, insetLeft: percent(33), insetBottom: px(12), width: percent(34), height: px(38) },
+ text: { content: 'TRY AGAIN', fontSize: 20 },
+ onClick: () => {
+ if (!completed) return;
+ playableRetry(); selected.clear(); completed = false; caption('0 / 3 SHIPS READY');
+ ships.forEach((entity, index) => {
+ world.insert(entity, Interactable, { ...world.get(entity, Interactable), enabled: true });
+ world.insert(entity, UIVisual, { ...world.get(entity, UIVisual), color: colors[index] });
+ });
+ },
+ });
+ world.insert(retry.entity, Name, { value: 'Retry' });
+}, { name: 'PlayableFleetSetup' }));
-addSystemToSchedule(Schedule.Update, tapSystem);
+addSystemToSchedule(Schedule.Update, defineSystem([Res(Time), GetWorld()], (time, world) => {
+ if (!completed || cta === null || !world.valid(cta)) return;
+ const pulse = 0.8 + Math.sin(time.elapsed * 5) * 0.2;
+ world.insert(cta, UIVisual, { ...world.get(cta, UIVisual), color: { r: 1, g: 0.62 + pulse * 0.16, b: 0.23, a: 1 } });
+}, { name: 'PlayableInstallPrompt' }));
diff --git a/templates/playable-ad/thumbnail.png b/templates/playable-ad/thumbnail.png
new file mode 100644
index 000000000..bf33b49be
Binary files /dev/null and b/templates/playable-ad/thumbnail.png differ
diff --git a/templates/playable-ad/thumbnail.png.meta b/templates/playable-ad/thumbnail.png.meta
new file mode 100644
index 000000000..aaa981b82
--- /dev/null
+++ b/templates/playable-ad/thumbnail.png.meta
@@ -0,0 +1,17 @@
+{
+ "uuid": "05fc9020-4f42-4ddb-864e-13c5560407d5",
+ "version": "2.0",
+ "type": "texture",
+ "importer": {
+ "maxSize": 2048,
+ "filterMode": "linear",
+ "wrapMode": "clamp",
+ "premultiplyAlpha": false,
+ "sliceBorder": {
+ "left": 0,
+ "right": 0,
+ "top": 0,
+ "bottom": 0
+ }
+ }
+}
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index d2bdf7def..5a9d504e4 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -28,6 +28,10 @@ export const NOTES_FLOOR = 'v0.65.0';
* the reader recognises anyway.
*/
export const NOTED = {
+ 'feat(templates): ship a complete playable ad starter':
+ { note: 'The Playable Ad starter includes a complete editable game.' },
+ 'test(launcher): preserve complete playable starter on creation':
+ { note: 'The Playable Ad starter includes a complete editable game.' },
'test(youtube): verify hosting CSP and negative control':
{ note: 'YouTube headless checks enforce the documented hosting policy.' },
'feat(youtube): validate export bundle constraints':