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(examples): a sorting group somebody authored

esenginef464dc383685
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 10d2a9637..e95dd8b57 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,12 @@ published separately; it ships inside the editor.
### Added
+- **A sorting group in the sprite demo.** The component that makes a subtree
+ sort as one unit — the fix for a character whose sword draws behind the wrong
+ prop — had a pixel criterion of its own and no instance in any shipped scene.
+ sprite-rendering now carries one whose member claims a layer nine levels above
+ the group's, so what the group takes over is visible on screen.
+
- **Every 2D collider shape and joint, authored in a scene.** The capsule,
segment, chain and polygon colliders and three of the six joints had no
instance in any scene either. physics-playground's showcase now hangs a
diff --git a/examples/README.md b/examples/README.md
index b9cd8d6e7..9a5bf4a1a 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -18,7 +18,7 @@ for your own game.
| **scene-flow** | Basics | Runtime scene flow — menu → level 1 → level 2 through `SceneManager` fade transitions, over a persistent shell scene. |
| **save-load** | Basics | Versioned persistence — `SaveManager` save/load with a live v1→v2 migration, plus raw `Storage` preferences. |
| **timers-demo** | Basics | `TimerManager` delays, intervals and handles — pause/resume/cancel/reset plus `timeScale`, replacing hand-rolled `time.delta` accumulators. |
-| **sprite-rendering** | Rendering | Draw sprites with rotation, tint and flipping. |
+| **sprite-rendering** | Rendering | Draw sprites with rotation, tint and flipping. A SortingGroup shows a subtree taking over its members' layers. |
| **sprite-animation** | Animation | Frame animation via `.esanim` clips with an idle/walk switcher. |
| **spine-demo** | Animation | A Spine skeleton cycling idle/walk/run/jump/shoot (1-5 to switch). |
| **dragonbones-demo** | Animation | A DragonBones armature crossfading stand/walk/jump/fall (1-4 to switch), with two figures sharing one parsed skeleton. |
diff --git a/examples/sprite-rendering/assets/scenes/main.esscene b/examples/sprite-rendering/assets/scenes/main.esscene
index 400e400f4..5c35e04da 100644
--- a/examples/sprite-rendering/assets/scenes/main.esscene
+++ b/examples/sprite-rendering/assets/scenes/main.esscene
@@ -11,7 +11,11 @@
{
"type": "Transform",
"data": {
- "position": { "x": 0, "y": 0, "z": 10 }
+ "position": {
+ "x": 0,
+ "y": 0,
+ "z": 10
+ }
}
},
{
@@ -32,9 +36,38 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -250, "y": 150, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.93, "g": 0.17, "b": 0.17, "a": 0.9 } } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 1.5 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -250,
+ "y": 150,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.93,
+ "g": 0.17,
+ "b": 0.17,
+ "a": 0.9
+ }
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 1.5
+ }
+ }
],
"visible": true
},
@@ -44,9 +77,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -230, "y": 90, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.93, "g": 0.74, "b": 0.17, "a": 0.9 }, "layer": 1 } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 1.7, "phase": 0.5 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -230,
+ "y": 90,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.93,
+ "g": 0.74,
+ "b": 0.17,
+ "a": 0.9
+ },
+ "layer": 1
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 1.7,
+ "phase": 0.5
+ }
+ }
],
"visible": true
},
@@ -56,9 +120,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -210, "y": 30, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.55, "g": 0.93, "b": 0.17, "a": 0.9 }, "layer": 2 } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 1.9, "phase": 1 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -210,
+ "y": 30,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.55,
+ "g": 0.93,
+ "b": 0.17,
+ "a": 0.9
+ },
+ "layer": 2
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 1.9,
+ "phase": 1
+ }
+ }
],
"visible": true
},
@@ -68,9 +163,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -190, "y": -30, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.17, "g": 0.93, "b": 0.36, "a": 0.9 }, "layer": 3 } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 2.1, "phase": 1.5 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -190,
+ "y": -30,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.17,
+ "g": 0.93,
+ "b": 0.36,
+ "a": 0.9
+ },
+ "layer": 3
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 2.1,
+ "phase": 1.5
+ }
+ }
],
"visible": true
},
@@ -80,9 +206,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -170, "y": -90, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.17, "g": 0.93, "b": 0.93, "a": 0.9 }, "layer": 4 } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 2.3, "phase": 2 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -170,
+ "y": -90,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.17,
+ "g": 0.93,
+ "b": 0.93,
+ "a": 0.9
+ },
+ "layer": 4
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 2.3,
+ "phase": 2
+ }
+ }
],
"visible": true
},
@@ -92,9 +249,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -150, "y": -150, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.17, "g": 0.36, "b": 0.93, "a": 0.9 }, "layer": 5 } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 2.5, "phase": 2.5 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -150,
+ "y": -150,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.17,
+ "g": 0.36,
+ "b": 0.93,
+ "a": 0.9
+ },
+ "layer": 5
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 2.5,
+ "phase": 2.5
+ }
+ }
],
"visible": true
},
@@ -104,9 +292,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -130, "y": -210, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.55, "g": 0.17, "b": 0.93, "a": 0.9 }, "layer": 6 } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 2.7, "phase": 3 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -130,
+ "y": -210,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.55,
+ "g": 0.17,
+ "b": 0.93,
+ "a": 0.9
+ },
+ "layer": 6
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 2.7,
+ "phase": 3
+ }
+ }
],
"visible": true
},
@@ -116,9 +335,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -110, "y": -270, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 120, "y": 40 }, "color": { "r": 0.93, "g": 0.17, "b": 0.74, "a": 0.9 }, "layer": 7 } },
- { "type": "Wave", "data": { "amplitude": 15, "frequency": 2.9, "phase": 3.5 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -110,
+ "y": -270,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 40
+ },
+ "color": {
+ "r": 0.93,
+ "g": 0.17,
+ "b": 0.74,
+ "a": 0.9
+ },
+ "layer": 7
+ }
+ },
+ {
+ "type": "Wave",
+ "data": {
+ "amplitude": 15,
+ "frequency": 2.9,
+ "phase": 3.5
+ }
+ }
],
"visible": true
},
@@ -128,8 +378,27 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 200, "y": 0, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 40, "y": 40 }, "layer": 10, "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330" } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 40,
+ "y": 40
+ },
+ "layer": 10,
+ "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330"
+ }
+ }
],
"visible": true
},
@@ -139,9 +408,40 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 200, "y": 0, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 24, "y": 24 }, "color": { "r": 0.96, "g": 0.24, "b": 0.24, "a": 1 }, "layer": 11, "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330" } },
- { "type": "Orbit", "data": { "centerX": 200, "radius": 60 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 24,
+ "y": 24
+ },
+ "color": {
+ "r": 0.96,
+ "g": 0.24,
+ "b": 0.24,
+ "a": 1
+ },
+ "layer": 11,
+ "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330"
+ }
+ },
+ {
+ "type": "Orbit",
+ "data": {
+ "centerX": 200,
+ "radius": 60
+ }
+ }
],
"visible": true
},
@@ -151,9 +451,42 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 200, "y": 0, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 24, "y": 24 }, "color": { "r": 0.96, "g": 0.96, "b": 0.24, "a": 1 }, "layer": 11, "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330" } },
- { "type": "Orbit", "data": { "centerX": 200, "radius": 85, "speed": 1.3, "angle": 1.05 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 24,
+ "y": 24
+ },
+ "color": {
+ "r": 0.96,
+ "g": 0.96,
+ "b": 0.24,
+ "a": 1
+ },
+ "layer": 11,
+ "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330"
+ }
+ },
+ {
+ "type": "Orbit",
+ "data": {
+ "centerX": 200,
+ "radius": 85,
+ "speed": 1.3,
+ "angle": 1.05
+ }
+ }
],
"visible": true
},
@@ -163,9 +496,42 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 200, "y": 0, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 24, "y": 24 }, "color": { "r": 0.24, "g": 0.96, "b": 0.24, "a": 1 }, "layer": 11, "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330" } },
- { "type": "Orbit", "data": { "centerX": 200, "radius": 110, "speed": 1.6, "angle": 2.09 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 24,
+ "y": 24
+ },
+ "color": {
+ "r": 0.24,
+ "g": 0.96,
+ "b": 0.24,
+ "a": 1
+ },
+ "layer": 11,
+ "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330"
+ }
+ },
+ {
+ "type": "Orbit",
+ "data": {
+ "centerX": 200,
+ "radius": 110,
+ "speed": 1.6,
+ "angle": 2.09
+ }
+ }
],
"visible": true
},
@@ -175,9 +541,42 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 200, "y": 0, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 24, "y": 24 }, "color": { "r": 0.24, "g": 0.96, "b": 0.96, "a": 1 }, "layer": 11, "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330" } },
- { "type": "Orbit", "data": { "centerX": 200, "radius": 60, "speed": 1.9, "angle": 3.14 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 24,
+ "y": 24
+ },
+ "color": {
+ "r": 0.24,
+ "g": 0.96,
+ "b": 0.96,
+ "a": 1
+ },
+ "layer": 11,
+ "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330"
+ }
+ },
+ {
+ "type": "Orbit",
+ "data": {
+ "centerX": 200,
+ "radius": 60,
+ "speed": 1.9,
+ "angle": 3.14
+ }
+ }
],
"visible": true
},
@@ -187,9 +586,42 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 200, "y": 0, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 24, "y": 24 }, "color": { "r": 0.24, "g": 0.24, "b": 0.96, "a": 1 }, "layer": 11, "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330" } },
- { "type": "Orbit", "data": { "centerX": 200, "radius": 85, "speed": 2.2, "angle": 4.19 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 24,
+ "y": 24
+ },
+ "color": {
+ "r": 0.24,
+ "g": 0.24,
+ "b": 0.96,
+ "a": 1
+ },
+ "layer": 11,
+ "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330"
+ }
+ },
+ {
+ "type": "Orbit",
+ "data": {
+ "centerX": 200,
+ "radius": 85,
+ "speed": 2.2,
+ "angle": 4.19
+ }
+ }
],
"visible": true
},
@@ -199,9 +631,42 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 200, "y": 0, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 24, "y": 24 }, "color": { "r": 0.96, "g": 0.24, "b": 0.96, "a": 1 }, "layer": 11, "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330" } },
- { "type": "Orbit", "data": { "centerX": 200, "radius": 110, "speed": 2.5, "angle": 5.24 } }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 200,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 24,
+ "y": 24
+ },
+ "color": {
+ "r": 0.96,
+ "g": 0.24,
+ "b": 0.96,
+ "a": 1
+ },
+ "layer": 11,
+ "texture": "@uuid:ac9483ea-42c0-4fce-8a31-cf4cdc224330"
+ }
+ },
+ {
+ "type": "Orbit",
+ "data": {
+ "centerX": 200,
+ "radius": 110,
+ "speed": 2.5,
+ "angle": 5.24
+ }
+ }
],
"visible": true
},
@@ -211,9 +676,37 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -90, "y": -200, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 50, "y": 30 }, "color": { "r": 0.4, "g": 0.8, "b": 1, "a": 1 }, "layer": 5, "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a" } },
- { "type": "Spin", "data": {} }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -90,
+ "y": -200,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 50,
+ "y": 30
+ },
+ "color": {
+ "r": 0.4,
+ "g": 0.8,
+ "b": 1,
+ "a": 1
+ },
+ "layer": 5,
+ "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a"
+ }
+ },
+ {
+ "type": "Spin",
+ "data": {}
+ }
],
"visible": true
},
@@ -223,9 +716,38 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": -10, "y": -200, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 50, "y": 30 }, "color": { "r": 0.4, "g": 0.8, "b": 1, "a": 1 }, "flipX": true, "layer": 5, "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a" } },
- { "type": "Spin", "data": {} }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": -10,
+ "y": -200,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 50,
+ "y": 30
+ },
+ "color": {
+ "r": 0.4,
+ "g": 0.8,
+ "b": 1,
+ "a": 1
+ },
+ "flipX": true,
+ "layer": 5,
+ "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a"
+ }
+ },
+ {
+ "type": "Spin",
+ "data": {}
+ }
],
"visible": true
},
@@ -235,9 +757,38 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 70, "y": -200, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 50, "y": 30 }, "color": { "r": 0.4, "g": 0.8, "b": 1, "a": 1 }, "flipY": true, "layer": 5, "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a" } },
- { "type": "Spin", "data": {} }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 70,
+ "y": -200,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 50,
+ "y": 30
+ },
+ "color": {
+ "r": 0.4,
+ "g": 0.8,
+ "b": 1,
+ "a": 1
+ },
+ "flipY": true,
+ "layer": 5,
+ "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a"
+ }
+ },
+ {
+ "type": "Spin",
+ "data": {}
+ }
],
"visible": true
},
@@ -247,11 +798,143 @@
"parent": null,
"children": [],
"components": [
- { "type": "Transform", "data": { "position": { "x": 150, "y": -200, "z": 0 } } },
- { "type": "Sprite", "data": { "size": { "x": 50, "y": 30 }, "color": { "r": 0.4, "g": 0.8, "b": 1, "a": 1 }, "flipX": true, "flipY": true, "layer": 5, "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a" } },
- { "type": "Spin", "data": {} }
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 150,
+ "y": -200,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 50,
+ "y": 30
+ },
+ "color": {
+ "r": 0.4,
+ "g": 0.8,
+ "b": 1,
+ "a": 1
+ },
+ "flipX": true,
+ "flipY": true,
+ "layer": 5,
+ "texture": "@uuid:d7cfc683-b474-4c6a-bedf-c5149593510a"
+ }
+ },
+ {
+ "type": "Spin",
+ "data": {}
+ }
],
"visible": true
+ },
+ {
+ "id": 20,
+ "name": "Badge",
+ "parent": null,
+ "children": [
+ 21,
+ 22
+ ],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 250,
+ "y": -190,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "SortingGroup",
+ "data": {
+ "layer": 2,
+ "order": 0,
+ "enabled": true
+ }
+ }
+ ]
+ },
+ {
+ "id": 21,
+ "name": "BadgeBack",
+ "parent": 20,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 0,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 120,
+ "y": 120
+ },
+ "color": {
+ "r": 0.18,
+ "g": 0.55,
+ "b": 0.92,
+ "a": 1
+ },
+ "layer": 9,
+ "order": 0
+ }
+ }
+ ]
+ },
+ {
+ "id": 22,
+ "name": "BadgeFront",
+ "parent": 20,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 26,
+ "y": -26,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Sprite",
+ "data": {
+ "size": {
+ "x": 70,
+ "y": 70
+ },
+ "color": {
+ "r": 0.99,
+ "g": 0.78,
+ "b": 0.25,
+ "a": 1
+ },
+ "layer": 0,
+ "order": 1
+ }
+ }
+ ]
}
]
-}
+}
\ No newline at end of file
diff --git a/tools/check-corpus-authoring.mjs b/tools/check-corpus-authoring.mjs
index 79ff569b2..ae157e99b 100644
--- a/tools/check-corpus-authoring.mjs
+++ b/tools/check-corpus-authoring.mjs
@@ -119,7 +119,6 @@ const DISPOSITION = {
// Each reason names where the coverage belongs. —
- SortingGroup: ['owed', 'the component that makes a subtree sort as one unit — the fix for every "my character\'s sword draws behind the wrong prop", demonstrated nowhere'],
CacheAsBitmap: ['owed', 'flattening a static subtree into one texture is a performance decision with no example showing when to take it'],
BitmapText: ['owed', 'Create > Bitmap Text exists; every corpus scene uses Text instead, so the pixel-font path ships unwitnessed'],
SpriteMask: ['owed', 'space-shooter masks from code; masking is authored geometry and belongs in a scene'],