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.

chore(gates): the reds behind the first one

esengine031fc9e30765
diff --git a/desktop b/desktop
index 6ced59fbf..9840725c4 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 6ced59fbf5470356900a3e3659a703b7db1ce169
+Subproject commit 9840725c4be44073782cd2ba3d2b56b1ec846c71
diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.json
index 9c81205f6..1ec7159e9 100644
--- a/docs/astro/src/data/apiStability.generated.json
+++ b/docs/astro/src/data/apiStability.generated.json
@@ -1,12 +1,12 @@
{
"note": "Generated by tools/api-stability.mjs from sdk/etc/*.api.md — do not edit.",
"counts": {
- "public": 114,
+ "public": 115,
"beta": 103,
- "experimental": 1999,
+ "experimental": 2000,
"deprecated": 3
},
- "total": 2216,
+ "total": 2218,
"subsystems": [
{
"id": "ecs",
@@ -1369,6 +1369,18 @@
"minigame"
]
},
+ {
+ "name": "SpriteDrawMode",
+ "kind": "enum",
+ "deprecated": false,
+ "entries": [
+ "index",
+ "index.node",
+ "index.native",
+ "wechat",
+ "minigame"
+ ]
+ },
{
"name": "SpriteMaskInteraction",
"kind": "enum",
diff --git a/docs/astro/src/data/components.generated.json b/docs/astro/src/data/components.generated.json
index 663e596a3..f9c89dae9 100644
--- a/docs/astro/src/data/components.generated.json
+++ b/docs/astro/src/data/components.generated.json
@@ -4209,6 +4209,18 @@
"type": "boolean",
"default": "false"
},
+ {
+ "key": "drawMode",
+ "type": "enum",
+ "default": "Auto",
+ "doc": "Draw mode: Auto infers from tile size and the texture's 9-slice border; the others override it.",
+ "values": [
+ "Auto",
+ "Simple",
+ "Tiled",
+ "NineSlice"
+ ]
+ },
{
"key": "tileSize",
"type": "Vec2",
diff --git a/sdk/tests/cpp-contract.test.ts b/sdk/tests/cpp-contract.test.ts
index 1b3ce0b35..9a033c326 100644
--- a/sdk/tests/cpp-contract.test.ts
+++ b/sdk/tests/cpp-contract.test.ts
@@ -37,7 +37,7 @@ import { BodyType } from '../src/physics/PhysicsComponents';
import { UIPositionType, AlignSelf } from '../src/ui/core/ui-node';
import { UIVisualType, FillMethod, FillOrigin } from '../src/ui/core/ui-visual';
import { MaskMode } from '../src/ui/core/ui-mask';
-import { SpriteMaskInteraction } from '../src/ecs/component';
+import { SpriteMaskInteraction, SpriteDrawMode } from '../src/ecs/component';
import { ScrollMovement } from '../src/ui/core/ui-scroll';
import { TilemapOrientation } from '../src/tilemap/tileGeometry';
import { TextAlign } from '../src/ui/core/text';
@@ -193,6 +193,7 @@ describe('C++ contract: module-published enums ARE their EHT-generated twin', ()
['ParticleEasing', ParticleEasing, gen.ParticleEasing],
['MaskMode', MaskMode, gen.MaskMode],
['SpriteMaskInteraction', SpriteMaskInteraction, gen.SpriteMaskInteraction],
+ ['SpriteDrawMode', SpriteDrawMode, gen.SpriteDrawMode],
['ScrollMovement', ScrollMovement, gen.ScrollMovement],
['TilemapOrientation', TilemapOrientation, gen.TilemapOrientation],
['FlexDirection', FlexDirection, gen.FlexDirection],
diff --git a/src/esengine/aot/EngineDigest.generated.h b/src/esengine/aot/EngineDigest.generated.h
index 41144a7a2..2e99dffba 100644
--- a/src/esengine/aot/EngineDigest.generated.h
+++ b/src/esengine/aot/EngineDigest.generated.h
@@ -6,7 +6,7 @@
/* One per address width, because the width is IN the digest: a host that
took the other one would refuse every module built for it. */
-#define ES_ENGINE_ABI_DIGEST_32 0xc3809429b7ce13a0ULL
-#define ES_ENGINE_ABI_DIGEST_64 0x0a33a91a226cd5e4ULL
+#define ES_ENGINE_ABI_DIGEST_32 0xfd54bcd6871689adULL
+#define ES_ENGINE_ABI_DIGEST_64 0x7ad43dff377757b9ULL
#define ES_ENGINE_ABI_DIGEST \
(sizeof(es_addr_t) == 8 ? ES_ENGINE_ABI_DIGEST_64 : ES_ENGINE_ABI_DIGEST_32)
diff --git a/tests/aot/generated/move_system_decl.c b/tests/aot/generated/move_system_decl.c
index b8001718f..f11f9e02b 100644
--- a/tests/aot/generated/move_system_decl.c
+++ b/tests/aot/generated/move_system_decl.c
@@ -10,7 +10,7 @@
answer, it is a read of a different field. The address width belongs
to the MACHINE, so it mixes in here rather than in the compiler and a
32-bit artifact cannot load into a 64-bit host. */
-#define ES_ABI_ENGINE_DIGEST 0x0a33a91a226cd5e4ULL
+#define ES_ABI_ENGINE_DIGEST 0x7ad43dff377757b9ULL
ES_EXPORT const uint64_t es_abi_hash =
ES_ABI_ENGINE_DIGEST ^ (0x9e3779b97f4a7c15ULL * (uint64_t)sizeof(es_addr_t));
diff --git a/tests/aot/generated/move_system_hash.h b/tests/aot/generated/move_system_hash.h
index 5580dd462..7804e8c8e 100644
--- a/tests/aot/generated/move_system_hash.h
+++ b/tests/aot/generated/move_system_hash.h
@@ -1,6 +1,6 @@
/* GENERATED by @estella/compiler — do not edit. */
/* The contract half of the handshake. The width half is the harness. */
-#define ES_EXPECTED_CONTRACT_HASH 0x0a33a91a226cd5e4ULL
+#define ES_EXPECTED_CONTRACT_HASH 0x7ad43dff377757b9ULL
/* And which BUILD the artifact beside this one is, which the sidecar
written with it has to carry too. */
#define ES_EXPECTED_MODULE_CONTRACT 0x10bf77bb714ea1e3ULL
diff --git a/tools/check-theme.mjs b/tools/check-theme.mjs
index f45184f1c..ef05ecfbf 100644
--- a/tools/check-theme.mjs
+++ b/tools/check-theme.mjs
@@ -81,10 +81,7 @@ for (const surface of READING_SURFACES) {
/**
* `--cat-*` labels content on a PANEL; `--gizmo-*` draws over a scene and has to
- * win against it. A seventh chart series took `--gizmo-particle` at 100% for want
- * of a `--cat-` member. Whether a panel borrows one ON PURPOSE (streamed-cell
- * labels do, to match the viewport) is intent, and the identity rule below is
- * where that intent is written down.
+ * win against it. A deliberate borrowing is the identity rule's business, below.
*/
const saturation = (hex) => {
const h = hex.replace('#', '');
@@ -262,16 +259,11 @@ const iconScale = () => {
};
/**
- * Controls the editor hand-rolled rather than took from its own components.
+ * Controls the editor hand-rolled rather than took from `<Button>`/`<Tooltip>`,
+ * which are outnumbered 336:28 and 311:3.
*
- * `<Button>` and `<Tooltip>` exist and are outnumbered 336:28 and 311:3. Not a
- * rule — a raw `<button>` inside a tile cell or a timeline key is right, and a
- * component that forced every one through it would be worse. A ratchet, so the
- * next one is a decision someone makes rather than the path of least effort.
- *
- * `title=` is counted on DOM elements only. RM-092's figure of 419 counted
- * `<Modal title=…>` too — 80 of them are a component's prop and not a tooltip
- * at all.
+ * A ratchet, not a rule: a raw `<button>` in a tile cell is right. `title=`
+ * counts on DOM elements only — 80 of RM-092's 419 were `<Modal title=…>`.
*/
const handRolledByFile = () => {
const out = {};
diff --git a/tools/lib/apiEvidence.mjs b/tools/lib/apiEvidence.mjs
index 99fae8111..266f85920 100644
--- a/tools/lib/apiEvidence.mjs
+++ b/tools/lib/apiEvidence.mjs
@@ -139,6 +139,7 @@ export const BLIND = {
// TypeScript, and a scene writes these as plain numbers.
percent: AUTHORED_INSTEAD('the code spelling of a unit every authored UINode carries'),
SpriteMaskInteraction: AUTHORED_INSTEAD("the enum behind Sprite.maskInteraction, which space-shooter's hull bar now sets in its scene"),
+ SpriteDrawMode: AUTHORED_INSTEAD("the enum behind Sprite.drawMode, which space-shooter's starfield now sets in its scene to tile rather than stretch"),
CommandsInstance: RECEIVED,
EntityCommands: RECEIVED,
EventReaderInstance: RECEIVED,
diff --git a/tools/nativeScriptModules.js b/tools/nativeScriptModules.js
index 8805f935c..a6461b4b1 100644
--- a/tools/nativeScriptModules.js
+++ b/tools/nativeScriptModules.js
@@ -85,6 +85,10 @@ export const MODULES = {
disposition: 'forbidden-native-script',
why: 'the mini-game entry, as above',
},
+ 'esengine/douyin': {
+ disposition: 'forbidden-native-script',
+ why: "Douyin's platform profile — it names a host global (`tt`) that a native build does not have",
+ },
};
/** The `exports` subpath ("." / "./physics3d") a specifier corresponds to. */
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index f883418d7..a3fb4f508 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -28,6 +28,15 @@ export const NOTES_FLOOR = 'v0.65.0';
* the reader recognises anyway.
*/
export const NOTED = {
+ 'fix(examples): the starfield tiles, as its texture was drawn to':
+ { note: "space-shooter's background no longer stretches a 256px starfield over the whole screen." },
+
+ 'chore(gates): the reds behind the first one':
+ { internal: 'Generated artifacts and gate bookkeeping; nothing a creator sees changes.' },
+
+ 'test(editor): a sprite tiles when its scene says to, and stops when told not to':
+ { internal: 'A repository check over the editor; no creator runs it.' },
+
"feat(editor): a whole screen's heading is a step of the scale, not a raw 25px":
{ internal: 'One heading moved onto an existing scale; nothing a creator sees changes size.' },