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.

test(playthrough): the last leg says it reaches Vesper, because that is what it does

esengineec6cad3b49d9
diff --git a/examples/celestial-heights/playthrough.json b/examples/celestial-heights/playthrough.json
index fcfc9de1c..9b79efed1 100644
--- a/examples/celestial-heights/playthrough.json
+++ b/examples/celestial-heights/playthrough.json
@@ -61,7 +61,9 @@
"area": "spire",
"goal": "Vesper",
"swing": true,
- "timeout": 3000
+ "timeout": 3000,
+ "arriveWithin": 90,
+ "note": "reaching Vesper, not defeating her: this driver walks and swings, it does not fight a phased boss, so the leg ends on arrival and says so"
}
]
-}
\ No newline at end of file
+}
diff --git a/tools/launchers/play-through.mjs b/tools/launchers/play-through.mjs
index 64fd2957b..8171913a9 100644
--- a/tools/launchers/play-through.mjs
+++ b/tools/launchers/play-through.mjs
@@ -23,6 +23,9 @@
* --trace print what the driver decided, periodically
*
* A route is a list of legs: `{ area, goal, arriveWithin?, swing?, timeout? }`.
+ * A leg ends when its goal is GONE — taken, or dead — or when the area changed.
+ * `arriveWithin` ends it on distance instead, which is a weaker claim and so is
+ * never assumed: a leg that wants it says so, and says why.
* `goal` is an entity name the probe can find, so a leg survives the level being
* re-authored — the door moves, the route does not.
*
diff --git a/tools/releaseGate.mjs b/tools/releaseGate.mjs
index 74a5b281b..a968e98a0 100644
--- a/tools/releaseGate.mjs
+++ b/tools/releaseGate.mjs
@@ -144,7 +144,7 @@ export const CRITERIA = [
},
{
id: 'flagship-plays-through',
- says: 'the flagship can be played from its first room to its boss, as a package',
+ says: 'the flagship can be played from its first room to its boss, as a package (reached, not defeated)',
// Every other gate asks whether something works. This asks the only thing a
// player asks — and a game whose second door cannot be opened passes all of
// the others.
diff --git a/tools/verify-playthrough.mjs b/tools/verify-playthrough.mjs
index 70646161b..770249131 100644
--- a/tools/verify-playthrough.mjs
+++ b/tools/verify-playthrough.mjs
@@ -11,7 +11,9 @@
* Packages the flagship and hands it to the closed-loop driver, which walks the
* route by asking the running game where things are. What that proves is the
* game's own progression: the pickups its doors ask for, the doors those open,
- * and the boss at the end of them.
+ * and that the boss can be REACHED. Defeating her is not measured — this driver
+ * walks and swings, it does not fight a phased boss, and the route's last leg
+ * declares the arrival it ends on rather than implying a kill.
*
* node tools/verify-playthrough.mjs [--project <id>] [--route <file>] [--keep]
*/