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
chore(examples): Bistro's extra views are active so they can be read back
yhhd55446a0b8e9
diff --git a/desktop b/desktopindex 176b5a73e..f87bb4c86 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 176b5a73eb954edb68e4260b5e88e883a2984b70+Subproject commit f87bb4c86ed09cc57e880926dfe74bed6072a684diff --git a/examples/bistro/assets/scenes/main.esscene b/examples/bistro/assets/scenes/main.essceneindex dafcba435..81deb3cdf 100644--- a/examples/bistro/assets/scenes/main.esscene+++ b/examples/bistro/assets/scenes/main.esscene@@ -111,7 +111,7 @@"fov": 35.6,"nearPlane": 10,"farPlane": 40000,- "isActive": false,+ "isActive": true,"priority": 0}}@@ -147,7 +147,7 @@"fov": 45,"nearPlane": 10,"farPlane": 40000,- "isActive": false,+ "isActive": true,"priority": 0}}@@ -183,7 +183,7 @@"fov": 50,"nearPlane": 10,"farPlane": 40000,- "isActive": false,+ "isActive": true,"priority": 0}}diff --git a/examples/bistro/tools/build-scene.mjs b/examples/bistro/tools/build-scene.mjsindex 62fd3ae85..7872039e8 100644--- a/examples/bistro/tools/build-scene.mjs+++ b/examples/bistro/tools/build-scene.mjs@@ -56,7 +56,7 @@ const VIEW_POST = cameraPost();function cameraPost() { return JSON.parse(JSON.stringify(entities[0].components[2])); }const view = (name, eye, target, fov) => add(name, [tr(v3(eye), aim({ x: target[0] - eye[0], y: target[1] - eye[1], z: target[2] - eye[2] })),- { type: 'Camera', data: { projectionType: 0, fov, nearPlane: 10, farPlane: 40000, isActive: false, priority: 0 } },+ { type: 'Camera', data: { projectionType: 0, fov, nearPlane: 10, farPlane: 40000, isActive: true, priority: 0 } },]);view('View · corner', [-1560, 580, 34], [-300, 150, 0], 35.6);view('View · street', [-1100, 220, 700], [-400, 120, -100], 45);