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.

fix(templates): the 3D templates' camera no longer names a field Camera dropped, and the debug channel's test knows the world the stats read

yhh8190adc340bc
diff --git a/desktop b/desktop
index 7b96b53b2..41c9c58b4 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 7b96b53b2342e28173d9eb7af410b880d6c7556e
+Subproject commit 41c9c58b43c07d3fb2b8d0699bb6183a20596505
diff --git a/sdk/tests/debug-channel.test.ts b/sdk/tests/debug-channel.test.ts
index 47a5fd94a..074daec8b 100644
--- a/sdk/tests/debug-channel.test.ts
+++ b/sdk/tests/debug-channel.test.ts
@@ -150,7 +150,7 @@ describe('what the channel costs a device', () => {
getFrameCosts: () => null,
getFrameTiming: () => null,
wasmModule: null,
- world: { getAllEntities: () => [] },
+ world: { getAllEntities: () => [], getEntitiesWithComponents: () => [] },
} as unknown as App);
s.receive({ t: 'query', reqId: 21, kind: 'stats' });
await flush();
diff --git a/templates/3d-starter/assets/scenes/main.esscene b/templates/3d-starter/assets/scenes/main.esscene
index 76b763269..59f2d76e5 100644
--- a/templates/3d-starter/assets/scenes/main.esscene
+++ b/templates/3d-starter/assets/scenes/main.esscene
@@ -36,13 +36,7 @@
"nearPlane": 10,
"farPlane": 5000,
"isActive": true,
- "priority": 0,
- "backgroundColor": {
- "r": 0.09,
- "g": 0.11,
- "b": 0.15,
- "a": 1
- }
+ "priority": 0
}
}
],
diff --git a/templates/online-3d/assets/scenes/main.esscene b/templates/online-3d/assets/scenes/main.esscene
index 720921add..d1eac263d 100644
--- a/templates/online-3d/assets/scenes/main.esscene
+++ b/templates/online-3d/assets/scenes/main.esscene
@@ -36,13 +36,7 @@
"nearPlane": 10,
"farPlane": 5000,
"isActive": true,
- "priority": 0,
- "backgroundColor": {
- "r": 0.09,
- "g": 0.11,
- "b": 0.15,
- "a": 1
- }
+ "priority": 0
}
}
],