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.

docs(manual): the AI, tilemap and script-graph pages import from their subpaths

esenginef1138c8d90d3
diff --git a/docs/astro/src/content/docs/assets/textures.mdx b/docs/astro/src/content/docs/assets/textures.mdx
index 331793d96..b045ee367 100644
--- a/docs/astro/src/content/docs/assets/textures.mdx
+++ b/docs/astro/src/content/docs/assets/textures.mdx
@@ -82,7 +82,8 @@ loader resolved it, and your code never saw a `TextureResult`. To measure that o
ask the resource manager for the handle's dimensions:
```typescript
-import { defineSystem, Query, Sprite, getTextureDimensions } from 'esengine';
+import { defineSystem, Query, Sprite } from 'esengine';
+import { getTextureDimensions } from 'esengine/tilemap';
const measurePlaced = defineSystem([Query(Sprite)], (q) => {
for (const [entity, sprite] of q) {
diff --git a/docs/astro/src/content/docs/core-concepts/transforms.mdx b/docs/astro/src/content/docs/core-concepts/transforms.mdx
index a9984f120..af21b29e1 100644
--- a/docs/astro/src/content/docs/core-concepts/transforms.mdx
+++ b/docs/astro/src/content/docs/core-concepts/transforms.mdx
@@ -163,10 +163,8 @@ To read the angle back, `2 * atan2(z, w)`:
A complete example — turrets tracking the cursor:
```typescript
-import {
- defineSystem, defineTag, Query, Mut, Res,
- Transform, CameraView, quat, quaternionToAngle2D, normalizeAngle,
-} from 'esengine';
+import { defineSystem, defineTag, Query, Mut, Res, Transform, CameraView, quat, quaternionToAngle2D } from 'esengine';
+import { normalizeAngle } from 'esengine/ai';
const Turret = defineTag('Turret');
diff --git a/docs/astro/src/content/docs/gameplay/ai/advanced.mdx b/docs/astro/src/content/docs/gameplay/ai/advanced.mdx
index 0d53b6b8f..f34964c7d 100644
--- a/docs/astro/src/content/docs/gameplay/ai/advanced.mdx
+++ b/docs/astro/src/content/docs/gameplay/ai/advanced.mdx
@@ -18,7 +18,7 @@ for turn-based ranges — or when one grid isn't enough, since the `Nav` resourc
holds a single grid:
```typescript
-import { NavGrid, findPath, pathToWorld } from 'esengine';
+import { NavGrid, findPath, pathToWorld } from 'esengine/ai';
const grid = new NavGrid({ width: 32, height: 24, cellSize: 32 });
@@ -48,7 +48,7 @@ waypoints with `pathToWorld`.
core under `navGridFromTilemapLayer`, which just plugs in `TilemapAPI.getTile`:
```typescript
-import { navGridFromTiles } from 'esengine';
+import { navGridFromTiles } from 'esengine/tilemap';
const grid = navGridFromTiles((x, y) => level.tiles[y][x], {
width: 32, height: 24, cellSize: 32,
@@ -81,7 +81,8 @@ targets), or unit tests against a fake world:
the nearest visible one, and write the `Perception` component.
```typescript
-import { senseTarget, quaternionToAngle2D, Transform, registerCondition } from 'esengine';
+import { quaternionToAngle2D, Transform, registerCondition } from 'esengine';
+import { senseTarget } from 'esengine/ai';
// A one-off sight check against a POINT — no PerceptionTarget needed.
registerCondition('seesShrine', (ctx) => {
@@ -114,7 +115,7 @@ so the **editor and the `esengine` web runtime add them for you**. Only when you
an app from a bare `new App()` do you add them explicitly:
```typescript
-import { perceptionPlugin, fsmPlugin, btPlugin, navPlugin } from 'esengine';
+import { perceptionPlugin, fsmPlugin, btPlugin, navPlugin } from 'esengine/ai';
app.addPlugin(perceptionPlugin);
app.addPlugin(fsmPlugin);
diff --git a/docs/astro/src/content/docs/gameplay/ai/behavior-trees.mdx b/docs/astro/src/content/docs/gameplay/ai/behavior-trees.mdx
index 7c2ced7c1..23f259844 100644
--- a/docs/astro/src/content/docs/gameplay/ai/behavior-trees.mdx
+++ b/docs/astro/src/content/docs/gameplay/ai/behavior-trees.mdx
@@ -12,7 +12,7 @@ nodes control flow; decorators transform one child's result; leaves are your
registered actions and conditions. Attach a `BehaviorTreeAgent`:
```typescript
-import { BehaviorTreeAgent } from 'esengine';
+import { BehaviorTreeAgent } from 'esengine/ai';
cmds.spawn()
.insert(NavAgent, {})
@@ -28,7 +28,7 @@ cmds.spawn()
Author the tree visually in the editor, or build it in code with `registerBt`:
```typescript
-import { registerBt } from 'esengine';
+import { registerBt } from 'esengine/ai';
registerBt('guard', {
root: {
diff --git a/docs/astro/src/content/docs/gameplay/ai/navigation.mdx b/docs/astro/src/content/docs/gameplay/ai/navigation.mdx
index f9a245639..1e4507f64 100644
--- a/docs/astro/src/content/docs/gameplay/ai/navigation.mdx
+++ b/docs/astro/src/content/docs/gameplay/ai/navigation.mdx
@@ -20,7 +20,8 @@ questions of either, so nothing in a game has to know which one it was handed.
### Building a grid
```typescript
-import { defineSystem, Res, Nav, NavGrid } from 'esengine';
+import { defineSystem, Res } from 'esengine';
+import { Nav, NavGrid } from 'esengine/ai';
export const setupNav = defineSystem([Res(Nav)], (nav) => {
nav.setSurface(new NavGrid({
@@ -237,7 +238,7 @@ Attach a `NavAgent`, then point it at a destination. The built-in nav plugin pla
the path and steps the agent along it each frame — you just set the goal.
```typescript
-import { NavAgent, setNavDestination, stopNavAgent } from 'esengine';
+import { NavAgent, setNavDestination, stopNavAgent } from 'esengine/ai';
cmds.spawn()
.insert(Transform, { position: { x: 0, y: 0, z: 0 } })
diff --git a/docs/astro/src/content/docs/gameplay/ai/overview.mdx b/docs/astro/src/content/docs/gameplay/ai/overview.mdx
index 407706de2..bfa1fd800 100644
--- a/docs/astro/src/content/docs/gameplay/ai/overview.mdx
+++ b/docs/astro/src/content/docs/gameplay/ai/overview.mdx
@@ -48,7 +48,8 @@ both the FSM and the BT resolve those names against the same registry — so one
of leaves serves both paradigms.
```typescript
-import { registerAction, registerCondition, Status, Perception, setNavDestination } from 'esengine';
+import { registerAction, registerCondition } from 'esengine';
+import { Status, Perception, setNavDestination } from 'esengine/ai';
registerCondition('seesPlayer', (ctx) =>
ctx.has(Perception) && ctx.get(Perception).visible);
@@ -244,10 +245,8 @@ hunts a player with two enemies that share the same senses and leaves — one dr
a state machine, the other by a behavior tree:
```typescript
-import {
- defineSystem, Res, Nav, NavGrid,
- registerAction, registerCondition, setNavDestination, Perception,
-} from 'esengine';
+import { defineSystem, Res, registerAction, registerCondition } from 'esengine';
+import { Nav, NavGrid, setNavDestination, Perception } from 'esengine/ai';
// Shared leaves — the same names serve BOTH the .esfsm and the .esbt.
registerCondition('seesPlayer', (ctx) => ctx.has(Perception) && ctx.get(Perception).visible);
diff --git a/docs/astro/src/content/docs/gameplay/ai/perception.mdx b/docs/astro/src/content/docs/gameplay/ai/perception.mdx
index a7ece3ddb..4d4e2a302 100644
--- a/docs/astro/src/content/docs/gameplay/ai/perception.mdx
+++ b/docs/astro/src/content/docs/gameplay/ai/perception.mdx
@@ -8,7 +8,7 @@ the result into a `Perception` component on the same entity. Decisions read
`Perception`; sensing is just ECS data, not a side channel.
```typescript
-import { Perceiver, PerceptionTarget, Perception } from 'esengine';
+import { Perceiver, PerceptionTarget, Perception } from 'esengine/ai';
// The hunter senses…
cmds.spawn()
diff --git a/docs/astro/src/content/docs/gameplay/ai/state-machines.mdx b/docs/astro/src/content/docs/gameplay/ai/state-machines.mdx
index 73e96d8f9..4962a4ac6 100644
--- a/docs/astro/src/content/docs/gameplay/ai/state-machines.mdx
+++ b/docs/astro/src/content/docs/gameplay/ai/state-machines.mdx
@@ -12,7 +12,7 @@ one state is active; each tick, its outgoing transitions are checked in order an
first enabled one is taken. Attach a `StateMachineAgent` and point it at a graph:
```typescript
-import { StateMachineAgent } from 'esengine';
+import { StateMachineAgent } from 'esengine/ai';
cmds.spawn()
.insert(NavAgent, {})
@@ -31,7 +31,7 @@ The recommended path is to **author the graph in the editor** as an `.esfsm` ass
registered action/condition names by string. You can also build a machine in code:
```typescript
-import { registerFsm } from 'esengine';
+import { registerFsm } from 'esengine/ai';
registerFsm('guard', {
initial: 'Patrol',
diff --git a/docs/astro/src/content/docs/scripting/math.mdx b/docs/astro/src/content/docs/scripting/math.mdx
index 47bbf34f1..b6fdff16d 100644
--- a/docs/astro/src/content/docs/scripting/math.mdx
+++ b/docs/astro/src/content/docs/scripting/math.mdx
@@ -79,7 +79,8 @@ Also: `clamp`, `inverseLerp`, `rad2deg`, `approximately`, `mod`, `sign`.
handful of exports cover the angle ↔ quaternion round trip:
```typescript
-import { quat, quaternionToAngle2D, normalizeAngle } from 'esengine';
+import { quat, quaternionToAngle2D } from 'esengine';
+import { normalizeAngle } from 'esengine/ai';
// Angle -> quaternion. NOTE: the factory takes w FIRST — quat(w, x, y, z).
const a = Math.PI / 3;
diff --git a/docs/astro/src/content/docs/world/tilemaps.mdx b/docs/astro/src/content/docs/world/tilemaps.mdx
index cb9b25f13..a132178b6 100644
--- a/docs/astro/src/content/docs/world/tilemaps.mdx
+++ b/docs/astro/src/content/docs/world/tilemaps.mdx
@@ -108,7 +108,8 @@ The `Tilemap` component loads a `.tmj` map (Tiled's JSON format — in Tiled, us
*File → Export As → JSON*) via its one field:
```typescript
-import { defineSystem, Commands, Tilemap } from 'esengine';
+import { defineSystem, Commands } from 'esengine';
+import { Tilemap } from 'esengine/tilemap';
const loadLevel = defineSystem([Commands()], (cmds) => {
cmds.spawn().insert(Tilemap, { source: 'assets/maps/level.tmj' });
@@ -150,7 +151,8 @@ Plus the [orientation fields](#map-orientations) above — `orientation`,
Spawn an entity, initialise a layer, then fill it:
```typescript
-import { defineSystem, Commands, Res, Transform, Tilemaps } from 'esengine';
+import { defineSystem, Commands, Res, Transform } from 'esengine';
+import { Tilemaps } from 'esengine/tilemap';
const build = defineSystem([Commands(), Res(Tilemaps)], (cmds, tilemap) => {
const layer = cmds.spawn().insert(Transform, { position: { x: 0, y: 0, z: 0 } }).id();
@@ -355,7 +357,8 @@ The raw group data is still available by the map's source path with `tilemapSour
and custom `properties`:
```typescript
-import { defineSystem, Res, Assets, tilemapSource } from 'esengine';
+import { defineSystem, Res, Assets } from 'esengine';
+import { tilemapSource } from 'esengine/tilemap';
const readSpawns = defineSystem([Res(Assets)], (assets) => {
const src = tilemapSource(assets, 'assets/maps/level.tmj');
diff --git a/docs/astro/src/content/docs/zh-cn/assets/textures.mdx b/docs/astro/src/content/docs/zh-cn/assets/textures.mdx
index f750fa028..9106d2382 100644
--- a/docs/astro/src/content/docs/zh-cn/assets/textures.mdx
+++ b/docs/astro/src/content/docs/zh-cn/assets/textures.mdx
@@ -75,7 +75,8 @@ const showArt = defineSystem([Query(Mut(Sprite)), Res(Assets)], async (q, assets
`TextureResult`。要量这种纹理,直接按句柄问资源管理器:
```typescript
-import { defineSystem, Query, Sprite, getTextureDimensions } from 'esengine';
+import { defineSystem, Query, Sprite } from 'esengine';
+import { getTextureDimensions } from 'esengine/tilemap';
const measurePlaced = defineSystem([Query(Sprite)], (q) => {
for (const [entity, sprite] of q) {
diff --git a/docs/astro/src/content/docs/zh-cn/core-concepts/transforms.mdx b/docs/astro/src/content/docs/zh-cn/core-concepts/transforms.mdx
index 698c4192f..63f6bb458 100644
--- a/docs/astro/src/content/docs/zh-cn/core-concepts/transforms.mdx
+++ b/docs/astro/src/content/docs/zh-cn/core-concepts/transforms.mdx
@@ -148,10 +148,8 @@ const rot = quat(Math.cos(angle / 2), 0, 0, Math.sin(angle / 2));
完整示例——炮塔跟踪光标:
```typescript
-import {
- defineSystem, defineTag, Query, Mut, Res,
- Transform, CameraView, quat, quaternionToAngle2D, normalizeAngle,
-} from 'esengine';
+import { defineSystem, defineTag, Query, Mut, Res, Transform, CameraView, quat, quaternionToAngle2D } from 'esengine';
+import { normalizeAngle } from 'esengine/ai';
const Turret = defineTag('Turret');
diff --git a/docs/astro/src/content/docs/zh-cn/gameplay/ai/advanced.mdx b/docs/astro/src/content/docs/zh-cn/gameplay/ai/advanced.mdx
index 20c6d4ca4..cf5fd43da 100644
--- a/docs/astro/src/content/docs/zh-cn/gameplay/ai/advanced.mdx
+++ b/docs/astro/src/content/docs/zh-cn/gameplay/ai/advanced.mdx
@@ -15,7 +15,7 @@ description: "组件层之下的原语——手动寻路、感知内幕,以及
或者当一张网格不够用时,因为 `Nav` 资源只持有一张网格:
```typescript
-import { NavGrid, findPath, pathToWorld } from 'esengine';
+import { NavGrid, findPath, pathToWorld } from 'esengine/ai';
const grid = new NavGrid({ width: 32, height: 24, cellSize: 32 });
@@ -44,7 +44,7 @@ if (path) {
底下的核心,后者只是接上了 `TilemapAPI.getTile`:
```typescript
-import { navGridFromTiles } from 'esengine';
+import { navGridFromTiles } from 'esengine/tilemap';
const grid = navGridFromTiles((x, y) => level.tiles[y][x], {
width: 32, height: 24, cellSize: 32,
@@ -75,7 +75,8 @@ const grid = navGridFromTiles((x, y) => level.tiles[y][x], {
`Perception` 组件。
```typescript
-import { senseTarget, quaternionToAngle2D, Transform, registerCondition } from 'esengine';
+import { quaternionToAngle2D, Transform, registerCondition } from 'esengine';
+import { senseTarget } from 'esengine/ai';
// A one-off sight check against a POINT — no PerceptionTarget needed.
registerCondition('seesShrine', (ctx) => {
@@ -106,7 +107,7 @@ AI 层没有对物理的硬依赖。
加上它们**。只有当你从一个裸的 `new App()` 构建应用时,才需要显式加:
```typescript
-import { perceptionPlugin, fsmPlugin, btPlugin, navPlugin } from 'esengine';
+import { perceptionPlugin, fsmPlugin, btPlugin, navPlugin } from 'esengine/ai';
app.addPlugin(perceptionPlugin);
app.addPlugin(fsmPlugin);
diff --git a/docs/astro/src/content/docs/zh-cn/gameplay/ai/behavior-trees.mdx b/docs/astro/src/content/docs/zh-cn/gameplay/ai/behavior-trees.mdx
index e130c933c..e6ce97194 100644
--- a/docs/astro/src/content/docs/zh-cn/gameplay/ai/behavior-trees.mdx
+++ b/docs/astro/src/content/docs/zh-cn/gameplay/ai/behavior-trees.mdx
@@ -11,7 +11,7 @@ description: "运行 .esbt 图:选择、序列、装饰器与叶子,以及一次
结果;叶子是你注册的动作和条件。加一个 `BehaviorTreeAgent`:
```typescript
-import { BehaviorTreeAgent } from 'esengine';
+import { BehaviorTreeAgent } from 'esengine/ai';
cmds.spawn()
.insert(NavAgent, {})
@@ -27,7 +27,7 @@ cmds.spawn()
在编辑器里可视化编排这棵树,或用 `registerBt` 用代码构建:
```typescript
-import { registerBt } from 'esengine';
+import { registerBt } from 'esengine/ai';
registerBt('guard', {
root: {
diff --git a/docs/astro/src/content/docs/zh-cn/gameplay/ai/navigation.mdx b/docs/astro/src/content/docs/zh-cn/gameplay/ai/navigation.mdx
index 9cebd88c2..056873702 100644
--- a/docs/astro/src/content/docs/zh-cn/gameplay/ai/navigation.mdx
+++ b/docs/astro/src/content/docs/zh-cn/gameplay/ai/navigation.mdx
@@ -19,7 +19,8 @@ import { Aside } from '@astrojs/starlight/components';
### 构建网格
```typescript
-import { defineSystem, Res, Nav, NavGrid } from 'esengine';
+import { defineSystem, Res } from 'esengine';
+import { Nav, NavGrid } from 'esengine/ai';
export const setupNav = defineSystem([Res(Nav)], (nav) => {
nav.setSurface(new NavGrid({
@@ -201,7 +202,7 @@ app.getResource(NavDebugDraw).enabled = true;
你只管设目标。
```typescript
-import { NavAgent, setNavDestination, stopNavAgent } from 'esengine';
+import { NavAgent, setNavDestination, stopNavAgent } from 'esengine/ai';
cmds.spawn()
.insert(Transform, { position: { x: 0, y: 0, z: 0 } })
diff --git a/docs/astro/src/content/docs/zh-cn/gameplay/ai/overview.mdx b/docs/astro/src/content/docs/zh-cn/gameplay/ai/overview.mdx
index 9157930b9..e26a4500c 100644
--- a/docs/astro/src/content/docs/zh-cn/gameplay/ai/overview.mdx
+++ b/docs/astro/src/content/docs/zh-cn/gameplay/ai/overview.mdx
@@ -40,7 +40,8 @@ Estella 的 AI 层把一个实体变成会**感知**、会**决策**、会**移
你按名字注册一次,FSM 和 BT 都会对同一份注册表按名字解析——于是一套叶子同时服务两种范式。
```typescript
-import { registerAction, registerCondition, Status, Perception, setNavDestination } from 'esengine';
+import { registerAction, registerCondition } from 'esengine';
+import { Status, Perception, setNavDestination } from 'esengine/ai';
registerCondition('seesPlayer', (ctx) =>
ctx.has(Perception) && ctx.get(Perception).visible);
@@ -215,10 +216,8 @@ enemy.add(Health, { current: 50, max: 50 });
用两个敌人猎杀玩家,它们共享同一套感官和叶子——一个由状态机驱动,另一个由行为树驱动:
```typescript
-import {
- defineSystem, Res, Nav, NavGrid,
- registerAction, registerCondition, setNavDestination, Perception,
-} from 'esengine';
+import { defineSystem, Res, registerAction, registerCondition } from 'esengine';
+import { Nav, NavGrid, setNavDestination, Perception } from 'esengine/ai';
// 共享叶子——同一批名字同时服务 .esfsm 和 .esbt。
registerCondition('seesPlayer', (ctx) => ctx.has(Perception) && ctx.get(Perception).visible);
diff --git a/docs/astro/src/content/docs/zh-cn/gameplay/ai/perception.mdx b/docs/astro/src/content/docs/zh-cn/gameplay/ai/perception.mdx
index 0e1faad18..04aa066a7 100644
--- a/docs/astro/src/content/docs/zh-cn/gameplay/ai/perception.mdx
+++ b/docs/astro/src/content/docs/zh-cn/gameplay/ai/perception.mdx
@@ -7,7 +7,7 @@ description: "Perceiver 在视锥内感知附近目标,并把看到的写进 Per
组件。决策读 `Perception`;感知只是 ECS 数据,而不是一条旁路。
```typescript
-import { Perceiver, PerceptionTarget, Perception } from 'esengine';
+import { Perceiver, PerceptionTarget, Perception } from 'esengine/ai';
// 猎手负责感知……
cmds.spawn()
diff --git a/docs/astro/src/content/docs/zh-cn/gameplay/ai/state-machines.mdx b/docs/astro/src/content/docs/zh-cn/gameplay/ai/state-machines.mdx
index a9b8e9105..6be14da65 100644
--- a/docs/astro/src/content/docs/zh-cn/gameplay/ai/state-machines.mdx
+++ b/docs/astro/src/content/docs/zh-cn/gameplay/ai/state-machines.mdx
@@ -11,7 +11,7 @@ description: "运行 .esfsm 图:带 enter/update/exit 钩子的状态、带守
它的出边按顺序被检查,第一条满足条件的被采用。加一个 `StateMachineAgent` 并指向一个图:
```typescript
-import { StateMachineAgent } from 'esengine';
+import { StateMachineAgent } from 'esengine/ai';
cmds.spawn()
.insert(NavAgent, {})
@@ -29,7 +29,7 @@ cmds.spawn()
状态用字符串引用你注册的动作/条件名。你也可以用代码构建一台机器:
```typescript
-import { registerFsm } from 'esengine';
+import { registerFsm } from 'esengine/ai';
registerFsm('guard', {
initial: 'Patrol',
diff --git a/docs/astro/src/content/docs/zh-cn/scripting/math.mdx b/docs/astro/src/content/docs/zh-cn/scripting/math.mdx
index 2bc90f74c..ab5ef2c54 100644
--- a/docs/astro/src/content/docs/zh-cn/scripting/math.mdx
+++ b/docs/astro/src/content/docs/zh-cn/scripting/math.mdx
@@ -77,7 +77,8 @@ scalar.deg2rad(90); // degrees -> radians
角度 ↔ 四元数的往返:
```typescript
-import { quat, quaternionToAngle2D, normalizeAngle } from 'esengine';
+import { quat, quaternionToAngle2D } from 'esengine';
+import { normalizeAngle } from 'esengine/ai';
// Angle -> quaternion. NOTE: the factory takes w FIRST — quat(w, x, y, z).
const a = Math.PI / 3;
diff --git a/docs/astro/src/content/docs/zh-cn/world/tilemaps.mdx b/docs/astro/src/content/docs/zh-cn/world/tilemaps.mdx
index 5e7a7966a..6813cf7e5 100644
--- a/docs/astro/src/content/docs/zh-cn/world/tilemaps.mdx
+++ b/docs/astro/src/content/docs/zh-cn/world/tilemaps.mdx
@@ -95,7 +95,8 @@ Tiled 文件导入,无需额外设置。
用*文件 → 导出为 → JSON*):
```typescript
-import { defineSystem, Commands, Tilemap } from 'esengine';
+import { defineSystem, Commands } from 'esengine';
+import { Tilemap } from 'esengine/tilemap';
const loadLevel = defineSystem([Commands()], (cmds) => {
cmds.spawn().insert(Tilemap, { source: 'assets/maps/level.tmj' });
@@ -136,7 +137,8 @@ const loadLevel = defineSystem([Commands()], (cmds) => {
生成一个实体,初始化一个图层,然后填充它:
```typescript
-import { defineSystem, Commands, Res, Transform, Tilemaps } from 'esengine';
+import { defineSystem, Commands, Res, Transform } from 'esengine';
+import { Tilemaps } from 'esengine/tilemap';
const build = defineSystem([Commands(), Res(Tilemaps)], (cmds, tilemap) => {
const layer = cmds.spawn().insert(Transform, { position: { x: 0, y: 0, z: 0 } }).id();
@@ -307,7 +309,8 @@ Tiled 还是 Estella 编辑器。
尺寸、`type`(Tiled 的 class)、`shape` 和自定义 `properties`:
```typescript
-import { defineSystem, Res, Assets, tilemapSource } from 'esengine';
+import { defineSystem, Res, Assets } from 'esengine';
+import { tilemapSource } from 'esengine/tilemap';
const readSpawns = defineSystem([Res(Assets)], (assets) => {
const src = tilemapSource(assets, 'assets/maps/level.tmj');
diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.json
index fa1217224..5466f26e7 100644
--- a/docs/astro/src/data/apiStability.generated.json
+++ b/docs/astro/src/data/apiStability.generated.json
@@ -2,11 +2,11 @@
"note": "Generated by tools/api-stability.mjs from sdk/etc/*.api.md — do not edit.",
"counts": {
"public": 115,
- "beta": 98,
- "experimental": 1712,
+ "beta": 103,
+ "experimental": 2054,
"deprecated": 3
},
- "total": 1925,
+ "total": 2272,
"subsystems": [
{
"id": "ecs",
@@ -2597,6 +2597,46 @@
"minigame"
]
},
+ {
+ "name": "TilemapLayer",
+ "kind": "const",
+ "deprecated": false,
+ "entries": [
+ "tilemap"
+ ]
+ },
+ {
+ "name": "TilemapLayerData",
+ "kind": "interface",
+ "deprecated": false,
+ "entries": [
+ "tilemap"
+ ]
+ },
+ {
+ "name": "TilemapOrientation",
+ "kind": "enum",
+ "deprecated": false,
+ "entries": [
+ "tilemap"
+ ]
+ },
+ {
+ "name": "TilemapStaggerAxis",
+ "kind": "enum",
+ "deprecated": false,
+ "entries": [
+ "tilemap"
+ ]
+ },
+ {
+ "name": "TilemapStaggerIndex",
+ "kind": "enum",
+ "deprecated": false,
+ "entries": [
+ "tilemap"
+ ]
+ },
{
"name": "TouchPoint",
"kind": "interface",