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.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(golden): the three uncertified pillars join the corpus
esengine1c3a43ab16e5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 40b309ebf..03e116c58 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -109,12 +109,16 @@ published separately; it ships inside the editor.keyboard and pad twin of the pinch gesture already there — and its rebind nowoffers mouse buttons.-- **Animation and materials are declared corpus gaps.** Each was claimed by a- project that did not exercise it: `sprite-animation` and `cutscene` animate and- neither is certified, and `effects-gallery` is the only example with a material.- The suite reads 29 of 33 capabilities covered against 4 declared gaps, where it- read 31 of 33 against 2 — nothing regressed, the difference is what the false- claims were covering.+- **The corpus grew by three projects, so its coverage is backed.** Every false+ claim EVIDENCE found was a capability whose only real example sat outside the+ suite, so the fix was to bring them in rather than to declare holes.+ `examples/sprite-animation` certifies animation — the same key that walks the+ player switches its clip from Idle to Move, and the package answers it 0.73+ against a 0.15 floor. `examples/effects-gallery` certifies materials, a gallery+ of the built-in templates whose conveyor scrolls itself from the shader clock.+ With audio-demo that is 31 of 33 capabilities against 2 declared gaps — the same+ arithmetic as before this release and, for the first time, each claim backed by+ something in the project.- **`examples/audio-demo` joins the certification corpus, and a run proves soundcame out.** It was the one example that uses audio and it was outside the suite,diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.jsonindex 52fa8bbbd..56c2bbb4c 100644--- a/docs/astro/src/data/apiStability.generated.json+++ b/docs/astro/src/data/apiStability.generated.json@@ -2,8 +2,8 @@"note": "Generated by tools/api-stability.mjs from sdk/etc/*.api.md — do not edit.","counts": {"public": 111,- "beta": 58,- "experimental": 1461,+ "beta": 60,+ "experimental": 1459,"deprecated": 3},"total": 1630,@@ -207,9 +207,9 @@"id": "animation","title": "Animation & timeline","titleZh": "动画与时间轴",- "tier": "experimental",- "why": "sprite-animation and cutscene exercise it and neither is in the certification corpus",- "whyZh": "sprite-animation 和 cutscene 在用它,而这两个都不在认证语料里",+ "tier": "beta",+ "why": "sprite-animation now certifies it end to end, but the corpus reaches two of eighty animation symbols and the timeline half of them is untouched",+ "whyZh": "sprite-animation 现在端到端认证了它,但语料只触到 80 个动画符号里的 2 个,而其中时间轴那一半完全没被碰过","entry": ["Animator","SpriteAnimator"@@ -1624,6 +1624,18 @@}],"beta": [+ {+ "name": "Animator",+ "kind": "const",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "Assets","kind": "const",@@ -2032,6 +2044,18 @@"minigame"]},+ {+ "name": "SpriteAnimator",+ "kind": "const",+ "deprecated": false,+ "entries": [+ "index",+ "index.node",+ "index.native",+ "wechat",+ "minigame"+ ]+ },{"name": "ThemeColors","kind": "interface",diff --git a/sdk/etc/index.api.md b/sdk/etc/index.api.mdindex 2186aed8b..eca6337f9 100644--- a/sdk/etc/index.api.md+++ b/sdk/etc/index.api.md@@ -1,7 +1,7 @@# API surface — esengine/index<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 111 public · 51 beta · 1346 experimental · 3 deprecated+Symbols: 111 public · 53 beta · 1344 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -354,7 +354,7 @@ static new (): AnimationPluginstatic prototype: AnimationPlugin```-## Animator — const @experimental+## Animator — const @beta```ComponentDef<AnimatorData>```@@ -6603,7 +6603,7 @@ static new (): SpriteAnimationAPIstatic prototype: SpriteAnimationAPI```-## SpriteAnimator — const @experimental+## SpriteAnimator — const @beta```ComponentDef<SpriteAnimatorData>```diff --git a/sdk/etc/index.native.api.md b/sdk/etc/index.native.api.mdindex 09ede40c1..4b1b2b8b9 100644--- a/sdk/etc/index.native.api.md+++ b/sdk/etc/index.native.api.md@@ -1,7 +1,7 @@# API surface — esengine/index.native<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 111 public · 56 beta · 1365 experimental · 3 deprecated+Symbols: 111 public · 58 beta · 1363 experimental · 3 deprecated## ABI_LAYOUT_HASH — const @experimental```@@ -354,7 +354,7 @@ static new (): AnimationPluginstatic prototype: AnimationPlugin```-## Animator — const @experimental+## Animator — const @beta```ComponentDef<AnimatorData>```@@ -6796,7 +6796,7 @@ static new (): SpriteAnimationAPIstatic prototype: SpriteAnimationAPI```-## SpriteAnimator — const @experimental+## SpriteAnimator — const @beta```ComponentDef<SpriteAnimatorData>```diff --git a/sdk/etc/index.node.api.md b/sdk/etc/index.node.api.mdindex e23866feb..437a634e8 100644--- a/sdk/etc/index.node.api.md+++ b/sdk/etc/index.node.api.md@@ -1,7 +1,7 @@# API surface — esengine/index.node<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 111 public · 53 beta · 1345 experimental · 3 deprecated+Symbols: 111 public · 55 beta · 1343 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -349,7 +349,7 @@ static new (): AnimationPluginstatic prototype: AnimationPlugin```-## Animator — const @experimental+## Animator — const @beta```ComponentDef<AnimatorData>```@@ -6598,7 +6598,7 @@ static new (): SpriteAnimationAPIstatic prototype: SpriteAnimationAPI```-## SpriteAnimator — const @experimental+## SpriteAnimator — const @beta```ComponentDef<SpriteAnimatorData>```diff --git a/sdk/etc/minigame.api.md b/sdk/etc/minigame.api.mdindex 5697768a3..c488afeab 100644--- a/sdk/etc/minigame.api.md+++ b/sdk/etc/minigame.api.md@@ -1,7 +1,7 @@# API surface — esengine/minigame<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 111 public · 51 beta · 1366 experimental · 3 deprecated+Symbols: 111 public · 53 beta · 1364 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -349,7 +349,7 @@ static new (): AnimationPluginstatic prototype: AnimationPlugin```-## Animator — const @experimental+## Animator — const @beta```ComponentDef<AnimatorData>```@@ -6843,7 +6843,7 @@ static new (): SpriteAnimationAPIstatic prototype: SpriteAnimationAPI```-## SpriteAnimator — const @experimental+## SpriteAnimator — const @beta```ComponentDef<SpriteAnimatorData>```diff --git a/sdk/etc/wechat.api.md b/sdk/etc/wechat.api.mdindex 856d1e44b..cd7f1f3fa 100644--- a/sdk/etc/wechat.api.md+++ b/sdk/etc/wechat.api.md@@ -1,7 +1,7 @@# API surface — esengine/wechat<!-- Generated by tools/api-surface.mjs — do not edit. Run --update to accept changes. -->-Symbols: 111 public · 51 beta · 1356 experimental · 3 deprecated+Symbols: 111 public · 53 beta · 1354 experimental · 3 deprecated## ANCHOR_AXES — const @experimental```@@ -349,7 +349,7 @@ static new (): AnimationPluginstatic prototype: AnimationPlugin```-## Animator — const @experimental+## Animator — const @beta```ComponentDef<AnimatorData>```@@ -6605,7 +6605,7 @@ static new (): SpriteAnimationAPIstatic prototype: SpriteAnimationAPI```-## SpriteAnimator — const @experimental+## SpriteAnimator — const @beta```ComponentDef<SpriteAnimatorData>```diff --git a/sdk/src/animation/Animator.ts b/sdk/src/animation/Animator.tsindex 5939b0ef1..f2b3e278a 100644--- a/sdk/src/animation/Animator.ts+++ b/sdk/src/animation/Animator.ts@@ -348,6 +348,13 @@ export interface AnimatorData {enabled: boolean;}+/**+ * A state machine over clips: the controller decides which clip plays from the+ * parameters a game writes, so gameplay sets `speed` or fires a trigger rather+ * than naming a clip.+ *+ * @beta+ */export const Animator: ComponentDef<AnimatorData> = defineComponent('Animator', {controller: '',currentState: '',diff --git a/sdk/src/animation/SpriteAnimator.ts b/sdk/src/animation/SpriteAnimator.tsindex e67b5eee5..7c62d5640 100644--- a/sdk/src/animation/SpriteAnimator.ts+++ b/sdk/src/animation/SpriteAnimator.ts@@ -288,6 +288,13 @@ export interface SpriteAnimatorData {finished: boolean;}+/**+ * Frame playback on an entity: which clip, how fast, and where in it. The clip is+ * named rather than referenced, so a project registers clips from code or ships+ * them as `.esanim` and this stays the same either way.+ *+ * @beta+ */export const SpriteAnimator: ComponentDef<SpriteAnimatorData> = defineComponent('SpriteAnimator', {clip: '',speed: 1.0,diff --git a/tools/apiSubsystems.mjs b/tools/apiSubsystems.mjsindex bbf309410..67e543dbd 100644--- a/tools/apiSubsystems.mjs+++ b/tools/apiSubsystems.mjs@@ -150,9 +150,9 @@ export const SUBSYSTEMS = [id: 'animation',title: 'Animation & timeline',titleZh: '动画与时间轴',- tier: 'experimental',- why: 'sprite-animation and cutscene exercise it and neither is in the certification corpus',- whyZh: 'sprite-animation 和 cutscene 在用它,而这两个都不在认证语料里',+ tier: 'beta',+ why: 'sprite-animation now certifies it end to end, but the corpus reaches two of eighty animation symbols and the timeline half of them is untouched',+ whyZh: 'sprite-animation 现在端到端认证了它,但语料只触到 80 个动画符号里的 2 个,而其中时间轴那一半完全没被碰过',entry: ['Animator', 'SpriteAnimator'],},{diff --git a/tools/goldenProjects.mjs b/tools/goldenProjects.mjsindex 38902be34..82032dbdd 100644--- a/tools/goldenProjects.mjs+++ b/tools/goldenProjects.mjs@@ -124,10 +124,6 @@ export const KNOWN_GAPS = {// Measured: hello-world exports a 2.82MB single file, video-puzzle 3.22MB — so// the floor is the runtime, not the game, and no project reaches the 2MB cap.'startup-size': 'the playable runtime floor (~2.8MB) exceeds the 2MB default profile cap; see REARCH_EXPORT',- // What EVIDENCE found being claimed by a project that did not exercise it.- // Each is now a hole somebody has to read rather than a word in a list.- animation: 'sprite-animation and cutscene exercise it, and neither is in the corpus; platformer claimed it and contains no animation',- material: 'effects-gallery is the only example with a material, and it is not in the corpus; spine-demo claimed it and has none',};/**@@ -275,6 +271,22 @@ export const GOLDEN = [tier: 'release',interact: { keys: ['KeyD'], frames: 40 },},+ {+ id: 'sprite-animation',+ certifies: ['animation'],+ targets: ['web', 'desktop'],+ tier: 'release',+ // The player's clip switches Idle→Move on the same key that moves it, so a+ // driven frame differs because the animation changed as much as the position.+ interact: { keys: ['ArrowRight'], frames: 40 },+ },+ {+ id: 'effects-gallery',+ certifies: ['material'],+ targets: ['web', 'desktop'],+ tier: 'release',+ interactGap: 'a gallery of material templates with nothing to press — the conveyor scrolls itself from the shader clock',+ },{id: 'audio-demo',certifies: ['audio'],