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(editor): project files reach the viewport with their length, and the editor's viewport keys, icon and Spine pick fixes are noted - moves the editor to d83f603e
yhh988bf727c5b1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 4e310da63..a952b8be8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -38,9 +38,12 @@ published separately; it ships inside the editor.- **Telling the parts of a character apart.** `Hitboxes` puts a box on each bone of a skinned character, the size its ragdoll would give it, that follows the animation: a kinematic sensor that nothing walks into or is pushed by and that a ray meets, so a shot names the bone it struck and `hitPartOf` says whose. While the ragdoll is limp its own bodies stand in. In the editor a character from the character-rig example given `Hitboxes` had a sensor box on each of its bones, a ray at one of them met that character's bone by name, and three quarters of a second of animation later a ray where the bone had gone still met it.- **A sound or a piece of music can ship as its recipe.** A package shipped every sample of every clip, compressed. An `.essound` or an `.esmusic` (the source the sound and music tools write, which until now only the editor read) named where a clip goes is carried as it is and made on the device when it loads, by the same synthesis the editor bakes it with: `AudioSource.clip`, `Audio.playSFX` and `Audio.playBGM` take the path of the source. It is made on a worker thread, a piece of music on one and sound effects on another so a step is never made behind a theme, and kept in the content cache, so a later run reads it back. Importing `esengine/sound` installs the maker, and an export adds it when a shipped asset is one. A game of four effects and a minute of music packaged 1.7 MB lighter; on a desktop its effects were ready 2.5 s after the page opened and its minute of music after 4 s, the first time only (the music is made at about twenty times the speed it plays). A sound with variants is made as its first, and a backend that plays from an address and not from bytes cannot play one yet.- **A picture made in the editor is named by its recipe.** `image_write` answered the `.png` it had drawn, and the material it wrote named its maps as `.png` files, so a game built from what the tool answered shipped pixels although the engine could draw them from a few hundred bytes. It answers the `.esimage` as `ref` and as the texture of `meshRenderer` now, the material it writes names its maps as recipes, and the drawn file is `pngRef`. The game the editor plays draws recipes as the edit view does.+- **Viewport keys for moving things quickly.** Grid snapping starts on; a tap of Space cycles Move, Rotate and Scale while holding Space still pans; Ctrl/Cmd+backtick switches World and Local; End drops the selection onto the floor beneath it.### Fixed+- **Icons stay drawn and clickable with "selected entities only".** The setting hid the icons of lights, cameras, markers and the like that were not selected, so they could not be clicked; it now limits only the wireframes and handles, as its description says.+- **A large image reaches the editor's viewport on a busy machine.** The editor served project files without their length, and on a machine whose processor was busy (software rendering) a 10 MB image took 30 s to load and a 4097 heightmap missed its load deadline, leaving the terrain as noise; the same images now load in 8 s and 21 s there, and on a real GPU in well under a second as before.- **A post-process shader can read more than seven textures.** A fullscreen shader's eighth texture parameter found no texture unit and was not bound; units 4 and 5 now take the eighth and ninth. On WebGPU the first validation errors of a run are logged, where before only a refused command buffer reached the console.- **A Spine skeleton is selected by the character it draws.** A skeleton could be picked only on the small icon at its origin, so clicking the character selected nothing. The editor hands the pick box the skeleton's own bounds through the new `extentOf` option of `entityWorldBox` and `pickEntitiesByRay`, and the selection outline follows the same box.- **Nudging a selection moves each selected root once, so a selected child no longer travels twice.** With a parent and its child both selected, an arrow key moved the child by the nudge and again with its parent; each selected root now moves once and what is under it follows.diff --git a/desktop b/desktopindex 34fb805fe..d83f603e5 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit 34fb805fe0088bf5f26309cbe13ffbee3d9afd20+Subproject commit d83f603e59376d0daad4adf39f76fa6bc633d28ddiff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjsindex 11aab433c..93269c839 100644--- a/tools/releaseNotes.mjs+++ b/tools/releaseNotes.mjs@@ -4828,6 +4828,16 @@ export const NOTED = {{"note": "An engine component is stamped whoever writes it."},"feat(terrain): a terrain layer's sky occlusion is edited beside its normal strength":{"note": "A terrain layer and a field of plants each say how much of the sky reaches them."},+ "fix(editor): a project file is served with its length - without it a large file crossed the estella:// scheme a chunk per renderer task, and on a starved machine (software GL on the CI runner) a 10 MB heightmap took 30 s as an image and 170 s as a fetch, so the 4097 terrain's heightmap hit the 30 s asset deadline and its ground came up as noise; with the length the same image loads in 8 s and the 4097 one in 21 s, on a real GPU both stay under 0.3 s":+ {"note": "A large image reaches the editor's viewport on a busy machine."},+ "fix(editor): a Spine skeleton is selected by a click on the character it draws, and its outline follows it":+ {"note": "A Spine skeleton is selected by the character it draws."},+ "fix(editor): a light, camera, marker or other icon is drawn and clickable whether or not it is selected - 'selected entities only' limits the wireframes and handles, as its description says":+ {"note": "Icons stay drawn and clickable with \"selected entities only\"."},+ "feat(editor): UE-style viewport defaults and keys - grid snapping starts on, a Space tap cycles Move/Rotate/Scale while Space held still pans, Ctrl/Cmd+backtick switches World and Local, End drops a selection onto the floor":+ {"note": "Viewport keys for moving things quickly."},+ "fix(editor): project files reach the viewport with their length, and the editor's viewport keys, icon and Spine pick fixes are noted - moves the editor to d83f603e":+ {"note": "A large image reaches the editor's viewport on a busy machine."},"fix(checks): the nightly editor checks say what they take on the runner, terrain-open authors its heightmaps as the editor does and counts an import once it has landed, and an idle wait the overlay holds says why - model-detail took 4200 s against the 1500 it declared and took its shard's budget with it; a heightmap written into a scene file was a picture where one assigned in the inspector is Data, and the tiles were counted while the ground still streamed":{"internal": "The nightly editor checks' own budgets, fixtures and diagnosis; nothing a creator runs changes."},"fix(editor): a click lands on what is drawn - a Canvas or bare layout container no longer takes the click from the sprites beneath it, and is picked only where nothing else is":