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(changelog): the gameplay subpath

esenginec2765ea35d5c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e9ea943a8..e12c6f0d8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -33,6 +33,14 @@ published separately; it ships inside the editor.
install it. A project using a subsystem no subpath installs (video today) takes the whole
entry as before. Measured on the UI-game template: 1,305KB → 1,090KB, 57 files → 32.
+- **The gameplay runtime is a subpath: `import { Health } from 'esengine/gameplay'`.** The third-person controller, the
+ camera, health, melee and the hunter were in every package: 10,567 bytes of a WeChat
+ build with no character in it. What stays on `esengine` is the vocabulary — the animator
+ parameter names, the input keys, the combat event names — because an AnimatorController
+ asset names the parameters and an event binding names the events, and neither needs a
+ solver. `Playthrough` moves the other way, onto `esengine`: it is the fact a game
+ publishes about its own run, read by the observation seam every packaged game carries.
+
- **Replication is a subpath: `import { Net, Replicated } from 'esengine/replication'`.** The base plugin set named the replication
plugin, so every package carried the wire protocol, the codec, the interest query and the
prediction replay — 64KB of a single-player game that nothing in it can reach. A game that
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index 59d4b30b4..f8f2c033f 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -698,6 +698,10 @@ export const NOTED = {
{ internal: "a manual page's import line, following the move it documents" },
'refactor(play): the play realm asks for the whole import map by name':
{ internal: "the editor's preview page names the same subpaths it always did" },
+ 'refactor(gameplay): the gameplay runtime moves to its own subpath':
+ { note: "The gameplay runtime is a subpath: `import { Health } from 'esengine/gameplay'`." },
+ 'refactor(gameplay): the viewport imports MeleeAttack from its subpath':
+ { note: "The gameplay runtime is a subpath: `import { Health } from 'esengine/gameplay'`." },
'fix(douyin): the config file, the appid and a payment slot':
{ note: "A Douyin package carries Douyin's config file and Douyin's appid." },
'fix(douyin): a Douyin package carries a Douyin appid':