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
fix(playthrough): a leg ends when the game says so, not when the driver is near
esengine79d10f1c9ccd
diff --git a/tools/launchers/play-through.mjs b/tools/launchers/play-through.mjsindex 3f7d010ec..64fd2957b 100644--- a/tools/launchers/play-through.mjs+++ b/tools/launchers/play-through.mjs@@ -206,7 +206,10 @@ async function main() {for (const leg of route.legs) {const label = `${leg.area}:${leg.goal}`;const timeout = Number(leg.timeout ?? 1800);- const arriveWithin = Number(leg.arriveWithin ?? 90);+ // Only when the route asks for it: "gone" is the game's own answer, a distance+ // is this driver guessing at one. A default of 90 outran a PICKUP_RADIUS of+ // 70, leaving a ring that reports arrival while the game hands over nothing.+ const arriveWithin = leg.arriveWithin === undefined ? 0 : Number(leg.arriveWithin);let spent = 0;let arrived = false;let sawArea = false;