Skip to content

20.19: built-in 3D physics on meshes, a faster physics step, typed examples - #1923

Merged
obiot merged 110 commits into
masterfrom
claude/peaceful-ritchie-2vbnh4
Dec 5, 2026
Merged

obiot merged 110 commits into
masterfrom
claude/peaceful-ritchie-2vbnh4

Conversation

@obiot

@obiot obiot commented Dec 5, 2026

Copy link
Copy Markdown
Member

Description

The work for melonJS 20.19, @melonjs/debug-plugin 16.3 and @melonjs/rapier3d-adapter 1.1. The changelogs stay _unreleased_: the release itself is a separate, small pull request.

Built-in 3D physics. A Sphere or a Capsule3d collides exactly with a TriangleMesh3d, and a capsule with a capsule, a sphere and a box: a character lands on a level, climbs slopes up to 45° and stops at walls, with no adapter. A collision response on a mesh has grounded and contactNormals; raycast3d() meets a mesh on its triangles and takes collisionMask and exclude. The Rapier 3D adapter takes the same ray options and the same 45° ground limit.

Performance. The built-in physics step takes 70 to 90% less time per frame in the measured scenes and allocates over 90% less memory; a ray against a mesh takes about 80% less time. The figures and scenes are in the engine's changelog.

Fixes. Touching bodies on both sides of the world's origin, a deep body missed by raycast3d(), the body of a Mesh offset until its first draw, and several typing gaps: drawImage's short forms on the Canvas and WebGL renderers, TintPulseEffect#setTime() returning the effect, onended declared on Sprite and GLTFModel (and a Sprite3d subclass's onended() method is now called), OffscreenCanvas as a sprite's image.

Debug plugin. The hitbox overlay draws Capsule3d and TriangleMesh3d shapes, and a ConvexHull3d as its box under a Camera3d.

Examples. A new 3D Platformer on the built-in physics. The examples' type check now checks them: test:types ran tsc on a tsconfig with no files, so it checked nothing. The 418 errors the real check found are fixed, one example at a time and compared with the old code, and pnpm lint enforces it. No example sets or reads Body#jumping any more: the flag is documented as legacy, and a jump is gated on isGrounded().

Docs and skills. The skills cover the 3D physics, a 3D platformer, the jump recipe and the new symptom rows.

To note for TypeScript games: onended is now a declared property on Sprite and GLTFModel, so a subclass that defined onended() as a method writes override onended = () => { … }; instead (as was already the case on Sprite3d).

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement
  • Refactoring (no functional changes)

Checklist

  • I have read the Contributing Guide
  • My code follows the existing code style (pnpm lint passes)
  • I have tested my changes locally (pnpm test passes)
  • I have added tests that cover my changes (if applicable)
  • The build succeeds (pnpm build)

Run on the last commit: pnpm lint exits 0; the engine's tests, 13,334 passed and 245 skipped; the plugins' and adapters' tests all pass (gamepad 99, pathfinding 113, debug 37, spine 36, tiled-inflate 176, capacitor 9, matter 262, planck 517, rapier2d 51, rapier3d 172); pnpm doc builds with 0 errors; all 63 examples load and answer input with no console error.

Related issues

Refs #1893


Generated by Claude Code

… a sphere and a box

The built-in physics stored a Capsule3d as its bounding Box3d, so a character
rounded at both ends collided as a brick: it caught on the corner of a wall,
and two of them touched a radius early on the diagonal.

A built-in capsule is upright, so its axis is a vertical segment and the
closest points against the shapes that do not turn are found one world axis
at a time: an interval on Y where a sphere has a point. Three exact tests
(capsule, Sphere, Box3d), their mirrored forms, and the pairs against the
planar shapes, which keep the capsule's bounding rectangle as before.

A Capsule3d is now stored as itself: its outline feeds the body bounds, its
extents feed raycast3d, the 2D raycast and the debug overlay read it, and the
console warning is gone for it. ConvexHull3d and TriangleMesh3d still stand
their bounding box in.

First part of #1893; opens the 20.19.0 cycle.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…pth at their depth

melonJS 20.19 keeps a Capsule3d as a body shape of its own on the built-in
physics. The 3D hitbox overlay knew a Box3d and a Sphere only, so a capsule
fell to the flat path: its XY footprint at the renderable's depth.

It is drawn as a capsule: the ring at each end of its straight part and its
outline in the two upright planes under a Camera3d, a rounded rectangle under
a 2D camera (drawn directly, since Renderer#stroke only learned the shape in
20.19).

Any other shape with depth (a ConvexHull3d or a TriangleMesh3d, as a 3D
physics adapter reports them) is drawn as the box around it, where it was a
flat rectangle too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…lt-in physics

The built-in stood a mesh's bounding box in for it, so a level loaded from a
model was one big box and nothing could walk on it (#1893).

A static TriangleMesh3d is now kept as itself and resolved triangle by
triangle against a Sphere and a Capsule3d (trimesh.js):
- a uniform grid of its triangles, built once, gives the few a body is near;
- each gives a contact, and the body is moved out of them over a few passes,
  deepest first, each depth measured again after the ones before it, as
  Godot's character motion does; the pair still reports one push-out, with
  beside it whether a contact was a floor and the directions it was stopped
  along (ResponseObject#floor, contactCount, contactNormals);
- a floor is a surface within 45° of level and moves the body straight up, so
  a body stands still on a slope and climbs it at the speed it walks; a body
  that walked on a floor a step ago is set back down on it going downhill;
- a triangle stops a body from its front, read from the model by fromMesh,
  unless TriangleMesh3d#backfaceCollision; a body that crossed one within a
  step is put back out;
- a contact with the rim of a triangle inside a surface is dropped, so a
  body crosses the seams of a floor without a nudge.

Against any other shape a mesh still meets as its bounding box, which the
console now says when such a pair meets.

Between two bodies with depth, ground is a surface within 45° of level on
the built-in (it was anything short of about 84°), and on the Rapier 3D
adapter too (1.1.0), so that a game reads the same ground on either.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…er ground-angle test

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Kenney's Starter Kit 3D Platformer assets (CC0) and the first files of the
example. Not yet registered in the examples site, and not finished.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…ut, registered)

Still being built and tested; not ready to merge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Still being built and tested; not ready to merge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Under a Camera3d the hitbox overlay drew a mesh as the box around it, which
says nothing about the surface a body walks on: a ramp and the air above it
are the same box. It now strokes the mesh's own triangles, each edge once,
found once per mesh; a mesh of more than 6000 edges keeps the box.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Still being built and tested; not ready to merge.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
… handlers are told of the floor

Found by the 3D platformer example, the first game on the mesh narrowphase.

- A body whose centre passed under a triangle's plane within a step was put
  back out when it was within its radius of the triangle. Beside a platform,
  falling past its edge, that threw it up onto the top and called it
  grounded. It has to have come through the triangle itself: where its
  centre crossed the plane is a point of the triangle.
- onCollisionStart / onCollisionActive got a view of the response without
  floor, contactCount and contactNormals, which only the legacy onCollision
  saw. They are carried into the view, turned round for the second object,
  and CollisionResponse has floor.

Also the example's finished source, its touch controls and its assets.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…draw

Under a Camera3d a mesh pivots about its own origin, and the built-in physics
measures its collision shapes from there by reading applyAnchorTransform.
The flag was only cleared in preDraw, so a mesh's body was tested half the
mesh's bounds away from it for every step before its first draw, and for as
long as it stayed out of view. Found by the 3D platformer example.

Also corrects skill rows that still described a mesh and a capsule as their
bounding box on the built-in, and what a rounded foot does at a small rise.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…sics

- melonjs-3d: 'A character on a level', the whole recipe (level pieces as
  static TriangleMesh3d bodies, a Capsule3d hero, camera-relative movement,
  isGrounded, a sensor pickup) and what the built-in does for that body
- the router and the physics skill's table by game type point at it and at
  the 3D Platformer example
- examples on TriangleMesh3d, fromMesh, backfaceCollision, Capsule3d,
  the floor flag of a response and isGrounded

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…e Kenney credit follows a resize

From a review of the example for hand-rolled code:
- the falling platform's tremble, drop, fade and return are chained Tweens
- 'standing on it' is response.floor, not a threshold on the normal
- the end card is laid out by its UIPanel (column, autoSize)
- every body has a collision type and mask; no handler tests a name
- the camera's axes come from getRight / getForward, the hero's turn from
  slerp and math.damp, the card's delay from timer.setTimeout
- the grass is one InstancedMesh
- addKenneyCredit returns what it adds, takes a depth and re-places itself
  on a resize, so the example no longer removes and re-adds it
- the view keeps 720 px across the page's shorter side (fill-min), sharp in
  portrait
- the anchor workaround is gone, the engine having fixed it

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…rd edges

antiAlias also has the browser smooth the canvas as it is stretched to the
page, which blurred both games on any screen larger or denser than their
design size. It is off, with the textures still linear (textureFilter).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…s soft

The antiAlias API doc opened with 'video scaling interpolation' and went on
to MSAA; it now lists its three effects, the stretch of the finished frame
among them, and the settings for a crisp picture. The 3D skill has the
symptom row a 3D author would look for.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The hero, the run, the constants, the level's data and the controls each did
several things in one file. They are split by subject, in folders:

- entities/hero/: the hero, and one file each for where it walks, the rules
  of its jump, the way it faces, its footsteps and its shadow
- game/: the run, with its clock, the respawn after a fall and the finish
- level/: the builder, the lights, the grass, the probe for the floor under a
  point, and layout/ for the data (platforms, ramps, pickups, scenery)
- constants/ and assets/: one file per subject
- input/: the actions, what a pad presses, the bindings, the touch controls
- ui/: the overlay that owns the HUD and the card, the text style, the time

No change to how it plays. Two changes on the way:

- the HUD sets a text only when what it says changes: a Text is drawn and
  uploaded again each time it is set, and it was set every frame
- textureFilter is "linear-mipmap": the HUD's coin, the particles and the
  credit are drawn smaller than their pictures

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The stick comes under the left thumb wherever it lands on the left half of
the screen, and a press anywhere on the right half is the jump button: the
gamepad plugin's two-thumb layout. Both stay drawn at rest, in their corners.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The floating stick and button hide at rest (hideAtRest), as in most mobile
games, and come under the thumb that lands. With nothing drawn until then,
the HUD's hint says how to play on a touch screen too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
"linear-mipmap" changed only the HUD's coin, the particles and the credit:
the models already read their mipmaps under "linear", as every mesh does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
… corner

The game fills the screen, and on a phone the screen's own corner cut the
logo. addKenneyCredit takes the margin it keeps from the corner (unchanged
for the other examples), and the platformer gives more. In a view too narrow
for the hint and the credit on one line, the hint sits over the credit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The scaling skill's 3D setup gave antiAlias: true alone. It now shows both
choices and what each costs, as the antiAlias API doc and the 3D skill do.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
- CollisionResponse types contactCount and contactNormals, which the
  changelog and ResponseObject already describe
- toBox3d() of a capsule and of a mesh says when the built-in tests the box
- the skills agree on a thin platform and a fast body, say what the rise a
  round foot rides over depends on, and no longer say the built-in keeps
  every 3D shape a box or still warns for a mesh's body
- changelog: the old ground rule was 84 degrees across the screen only, what
  a game that relied on it does, and body.shapes now holds the capsule or
  the mesh itself

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
… each level it is near

A body walking down a slope is set back down on the floor it walked off.
Each sphere / capsule against mesh pair decided that for itself, so a level
with no contact this step looked under the body, found its own edge within
reach, and pushed the body down into the level it was standing on: a dip of
up to the stride at every seam between two static mesh bodies. The drop was
also reported as a push-out pointing down, so handlers read "under the
level" (normal.y = +1) on those steps and the body was recorded as blocked
upward.

The decision is now the body's, taken in Detector#keepOnFloor after all of
its pairs: only a body none of whose pairs gave it a floor this step is set
down, and on the highest floor within reach, whichever level that is on. The
drop is a correction of its position; the level is then measured as any
pair, with the body marked as standing on it, so `floor` is true, the normal
is the floor's and the block recorded is downward. A level that stopped the
body without being a floor (a wall it walks along) waits for that decision,
so set down on the same level the body still hears of its floor and its wall
in one contact.

Detector#collisions hands each candidate to collidePair, its former loop
body unchanged; a body without depth takes none of the new branches.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…re it ended

A body whose centre went through a triangle this step is put back out of it.
But the triangles were taken from the cells of the grid the body ended the
step in, so on a mesh cut finely enough for those cells to be small the
triangle it had gone through was no longer among them: a ball of radius 10
on a floor of 20-unit squares fell through from about 45 a step, while the
same ball on a two-triangle floor never did.

The first pass of a step now takes its cells from the box drawn back to
where the centre set out from. A body that moved less than its own radius
set out from inside its box, so it looks at no more cells than before.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…through it

A triangle of a mesh with backfaceCollision took whichever side the body's
centre was on now as the side to push it out of. A body moving further in a
step than its radius was already on the far side, and was pushed on through:
a ball of radius 10 fell through a two-sided floor at 12 a step from a
quarter of its starts. Only the one-sided mesh had the rescue.

Both have it now, from the side the centre was on a step ago. Whether the
centre's path crossed the triangle is asked of the engine's own rayTriangle,
in place of a plane crossing and a closest-point check written out here: its
tolerance is relative to the triangle's size.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…mesh's

`response.floor` says the round body of the pair stands on a floor of the
mesh. Body#respondToCollision read it on whichever body it was called for,
so a mesh body that is not static (a raft, a lift) took itself to be on a
floor whenever something stood on it: onSurface, isGrounded() and the
landing flags.

It is honoured now only by the body whose shape in the contact is not the
mesh. For the mesh's own body the direction of the push-out decides, as for
every other pair with depth: something on top of it is not a floor under it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…und sweep

`collides` reports one shape pair of a body pair, and the sweep that pushes a
compound body out of the others applied each one's push-out and nothing
else. For a sphere or a capsule on a mesh that left out what the contact
says beyond the push-out: on a level of two meshes in one body, a walker
standing on one and pressed to the wall of the other was grounded only when
the floor happened to be the pair found first (45 steps in 100 with the wall
listed last).

The sweep now passes on each mesh contact it measures: the standing body is
told of its floor (Body#_standOnFloor, which shares the landing rule with
respondToCollision), and its velocity is cancelled along each direction it
was stopped instead of along the one summed push-out. Pairs that carry no
such contact, every 2D pair among them, go through the code they did.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
… level

Body#contains asks each of a body's shapes whether it holds a point. A mesh
used to be stored as its bounding Box3d, which answers; kept as itself for
the built-in physics, it had no contains() and the call threw
"shape.contains is not a function".

TriangleMesh3d#contains(x, y, z) takes what Box3d#contains and
Capsule3d#contains take, a point or a vector with y and z defaulting to 0,
and answers for the shape's 3D bounds: a mesh is a skin with no inside.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
onShapeCollisionEnd is handed a view with every geometric field zeroed,
since the shapes have separated. `floor` and `contactCount` were left as the
view's last use had them, so a body lifted off a mesh level heard its
contact end with `floor: true` and one contact direction.

Detector#fillEndedView clears both with the rest.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…e skips it

Two costs of the sphere / capsule against mesh test that grew with nothing
to find.

A body whose box does not meet the box around the mesh's triangles was still
taken to the grid: its cells were clamped to the nearest ones and their
triangles measured, every step, for every level it overlaps in X and Y (the
detector's check before the narrowphase has no depth). It is turned back
first now, on the box drawn back along its travel, so that a body that went
through the level this step is still found.

A body reaching over as many cells as the mesh has triangles walked every
one of them, up to 64 cubed lookups a pass, most of them empty. It is
measured against each triangle once instead.

Neither changes a contact: every triangle a body can touch or has gone
through is inside both boxes, and inside the cells it reached over.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
claude added 17 commits December 4, 2026 02:44
raycast3d answered a TriangleMesh3d by the box round it, which is not where
a sphere or a capsule collides with it: a ray down onto a ramp stopped at the
top of the box, and one through the box and across no triangle reported a
hit. It is answered by the triangles, on the side a body collides with (its
front, or either side with backFaceCollision), with the triangle's normal.
The other shapes of a body are measured as they were.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The world's tree files an object by one point along depth and prunes a ray by
depth, but a body is not a point: cast straight down, a ray missed a floor
over half of its depth, and a deep wall that is narrow on the screen nearly
everywhere. Each node of the tree now knows how far what it holds reaches
along depth, and a ray is pruned by the node made that much deeper.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…shadow asks the physics world

raycast3d takes a third argument: collisionMask keeps the ray to bodies of
the given collision types, exclude leaves renderables out, on the built-in
physics and on Rapier 3D. A ray meets the nearest thing in its way, the
object it is cast from included, so "what is under this character" could
not be asked of it.

The 3D platformer's floor probe was a loop of rays against each platform's
mesh; it is one raycast3d, kept to the level by its collision type, and the
shadow lies on a block as it does on a platform.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
- After Burner: a bolt's ray takes a `collisionMask`, so a player's round
  meets enemy planes only and an enemy's meets the player only, instead of
  the nearest thing of any kind and a check afterwards.
- Jungle Rabbit: the title and game-over screens no longer latch a press;
  a `state.change` asked for while a fade is up needs no guard.
- glTF viewer, glTF character, isometric 3D, billboard, skinned character
  and toon: the camera is placed with `Camera3d#orbit` rather than with
  sines and cosines and a `lookAt`.
- Earth Defender and Jungle Rabbit: a quad whose look comes from a shader
  is carried by `Renderer.getWhitePixel()` rather than a blank canvas.
- Earth Defender: the sun's direction is turned with `Matrix3d#apply`.
- `math.clamp`, `math.lerp` and `math.TAU` in place of local helpers,
  `Renderer.createCanvas` in place of `document.createElement("canvas")`,
  and the toon example's backdrop is the world's background colour.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The 3D skill tells a game to prefer `Camera3d#orbit`; its own isometric
sample placed the camera with sines and cosines and a `lookAt`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…and createCanvas

- `Sprite` and `Sprite3d` declare `OffscreenCanvas` among the types of
  `settings.image`. Both already drew one; in TypeScript
  `Renderer.getWhitePixel()` needed a cast, which the skills do not show
  and five lines of the examples did not have.
- `Matrix3d#apply` and `applyInverse` say what they do: in place, a point
  (translation and the divide by w included), and what a direction needs.
  Tests for each of those, and a section and a symptom row in the math
  skill.
- `Renderer.createCanvas` says which canvas it returns and when, and how
  TypeScript sees it; the drawing skill had it the wrong way round.
- After Burner: a comment said `Box3d` against `Box3d` is the only contact
  resolved in 3D, and another named a method that does not exist.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The examples' own type check (tsconfig.app.json) reported 418 errors that
`pnpm lint` never saw. This takes the first 241: `override` on the methods
that override an engine one, and the SAT and Matter platformers typed in
full (constructor settings, collision handlers, the HUD, the minimap, the
texture atlas holder).

Two behaviour changes, both fixes: the touch controls of both platformers
now show when the debug panel is open (the test read a property that does
not exist), and the minimap releases its resize listener from
onDestroyEvent rather than by overriding the internal destroy().

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Takes the examples' own type check from 177 errors to 57. Most of it is
types only. What changes at run time, all of it checked against the old
code in the browser:

- the particle reference space ship kept its colour in a field named
  `tint`, which replaced Renderable's own tint with a string
- After Burner's sight projection now writes into the scratch vector that
  was declared for it and never passed
- the aquarium and heat haze panes skip their draw when the renderer has
  nothing to capture the frame with (toFrameTexture returns null)
- images and normal maps are given by the name they were loaded under,
  rather than through loader.getImage(), which can return null
- a setting with no value is left out rather than passed as undefined

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Types only, apart from the water overworld's atlas, which takes its image
by name. The examples' lib is raised to ES2022, the target they are
already compiled for (`replaceAll` was reported missing).

Nine errors are left in the examples' own type check, all of them from the
engine's types rather than from the examples: Body#jumping declared
read-only, drawImage's short forms, MaskEffect#reverseOptions being
internal, TintPulseEffect#setTime returning nothing, Sprite#onended not
being declared.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Body#jumping is read-only in the types, and three examples assigned it.
The engine never sets the flag, it only clears it, and whether a body may
jump is what isGrounded() answers:

- the water overworld gates its jump on isGrounded()
- the platformer and the LDtk platformer drop an assignment the engine
  wiped within the same step (a jump made by force reads as falling on its
  first step, which clears the flag)

Each example's player follows the same track as before, frame by frame,
under key presses placed on exact frames. The flag's doc and the physics
skill now say it is a legacy flag and point to isGrounded().

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…count

Body#jumping is a legacy flag the engine never sets. The physics skill
gains a section on jumping and on a second jump in the air, written with
isGrounded() and a count kept by the game, the way the 3D platformer does
it. The docs of isGrounded() and of Body#jumping say the same, and the
example of input.unlockKey no longer shows the old two-flag test.

Two tests pin it on the built-in physics: one jump at a time with none in
the air, and exactly two with a count of two, the flag never set. The
second fails when the old test is used without the flag.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…L renderers

drawImage(image, x, y) and drawImage(image, x, y, w, h) worked on every
renderer and were documented, but only the 9-argument form was declared on
the base, Canvas and WebGL renderers. Their last six arguments are now
optional, as the WebGPU renderer already declared them. Overloads were
tried first and dropped: a CanvasRenderer | WebGLRenderer value cannot
call a method overloaded differently on each side.

A typed spec draws all three forms on Canvas and WebGL and reads the
pixels back; it failed the type check before. Physics Shapes narrows its
art to a plain image, which is what the Canvas renderer draws.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Every effect's setTime() returns the effect for chaining; the tint pulse's
override returned nothing. TypeScript therefore refused a TintPulseEffect
where a ShaderEffect is expected, addPostEffect() included, which is the
example in the effect's own documentation.

Two tests were written first and failed: a typed one (the effect is
accepted as a ShaderEffect and by addPostEffect, and setTime() gives the
pulse back) and a drawn one (a pulse set as it is built covers the pixel
at its peak). Both fail again with the return taken out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…nded()

The engine calls onended when a video or an animation cycle ends, but
Sprite and GLTFModel never declared it (the line was commented out), so
TypeScript refused `sprite.onended = fn`, the Video example included.

It is declared now as on Sprite3d, a property that is undefined until set,
and only when a subclass has not defined an onended() method: an own
undefined would hide that method. Sprite3d did hide it, so a subclass
method was never called there; it uses the same guard now.

A TypeScript subclass that defined onended() as a method gets TS2425 and
writes it as a property instead; the changelog and the sprite skill say so.

Tests were written first: a typed one (assignment on Sprite, Sprite3d and
GLTFModel) with 7 type errors before, and a subclass-method test on each
of the three, which failed on Sprite3d before and fails on all three with
the guard taken out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Nothing sets the flag any more, so the read was always false. The player's
track is identical on eight jump patterns (one press to six, on the rise,
on the fall and after landing).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
…e gone

The LDtk platformer's teleport opened the screen again with
MaskEffect#reverseOptions, which is internal to the engine and not in its
types. It now gives the reveal the settings it gave the hide (shape, colour,
duration, invert), with the direction turned and the traveller as its
centre. Taken with a slowed mask before and after: the same player-shaped
opening, the player at the same place, the same state at the end.

With no type error left the compiler reports the declaration errors it held
back: the water overworld's strip props are classes returned by a function,
and an exported class needs a type with a name, so the function states its
return type. The examples' type check reports 0 errors, from 418.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
The examples' test:types script ran tsc on a tsconfig with no files of its
own, so it checked nothing. It now builds the two projects that tsconfig
refers to, without emitting: the examples' sources and the Vite config. A
type error put into an example on purpose fails it; taken out, it passes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Copilot AI balanced review requested due to automatic review settings December 5, 2026 07:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Reusing puff emitters shifts live particles to the new Z depth, and cloud overlaps incorrectly trigger landing bounces on underside or sideways contact.

2 open issues
What changed in this PR

Prepares melonJS 20.19 with built-in 3D platforming support for #1893, physics optimizations, and stronger TypeScript checking across the examples.

Changes:

  • Expands 3D collision and raycasting support, with matching Rapier options and grounding behavior.
  • Fixes rendering and animation API typings and adds regression coverage.
  • Adds a 3D Platformer example and updates existing examples, documentation, and package metadata.
File Description
packages/​rapier3d-adapter/​src/​types.ts Defines compatible ray options.
packages/​rapier3d-adapter/​src/​Rapier3dAdapter.ts Exposes raycast filtering options.
packages/​rapier3d-adapter/​src/​queries/​queries.ts Filters rays and adjusts grounding.
packages/​rapier3d-adapter/​README.md Documents the slope limit.
packages/​rapier3d-adapter/​package.json Updates adapter version.
packages/​rapier3d-adapter/​CHANGELOG.md Records unreleased adapter changes.
packages/​melonjs/​tests/​vector3d.spec.ts Tests zero-preserving negation.
packages/​melonjs/​tests/​vector2d.spec.ts Tests zero-preserving negation.
packages/​melonjs/​tests/​tintpulse-effect-type.spec.ts Checks effect compatibility and chaining.
packages/​melonjs/​tests/​shapes3d.spec.js Updates shape and bounds coverage.
packages/​melonjs/​tests/​quadtree.spec.js Tests reusable query results.
packages/​melonjs/​tests/​physics-3d-adversarial.spec.js Updates exact-shape expectations.
packages/​melonjs/​tests/​octree.spec.js Tests reusable query results.
packages/​melonjs/​tests/​obsvervableVector3d.spec.ts Tests observable-vector negation.
packages/​melonjs/​tests/​obsvervableVector2d.spec.ts Tests observable-vector negation.
packages/​melonjs/​tests/​gltf_model.spec.js Tests animation callback inheritance.
packages/​melonjs/​tests/​frameAnimation.spec.js Tests inherited sprite callbacks.
packages/​melonjs/​tests/​effect-colors.spec.js Tests pulse chaining and rendering.
packages/​melonjs/​tests/​builtin-adapter-physics-bug-hunt.spec.js Clarifies legacy jumping commentary.
packages/​melonjs/​tests/​builtin-adapter-3d.spec.js Updates approximation-warning expectations.
packages/​melonjs/​src/​video/​effects/​tintPulse.js Returns the effect from setTime.
packages/​melonjs/​src/​video/​canvas/​canvas_renderer.js Corrects drawImage parameter documentation and typings.
packages/​melonjs/​src/​renderable/​sprite3d.js Preserves inherited animation callbacks.
packages/​melonjs/​src/​renderable/​sprite.js Declares callbacks and OffscreenCanvas support.
packages/​melonjs/​src/​renderable/​renderable.js Explains absolute-position recomputation.
packages/​melonjs/​src/​renderable/​mesh.js Initializes anchoring and shares ray traversal.
packages/​melonjs/​src/​physics/​collision.js Documents broadphase tuning.
packages/​melonjs/​src/​physics/​builtin/​raycast.ts Handles capsule and mesh footprints.
packages/​melonjs/​src/​physics/​broadphase/​factory.ts Raises minimum octree depth.
packages/​melonjs/​src/​physics/​broadphase/​broadphase.ts Defines reusable candidate-query hooks.
packages/​melonjs/​src/​physics/​broadphase/​aabb3d.ts Adds translation and broadens vertex inputs.
packages/​melonjs/​src/​math/​vector3d.ts Prevents negative zero during negation.
packages/​melonjs/​src/​math/​vector2d.ts Prevents negative zero during negation.
packages/​melonjs/​src/​math/​observableVector3d.ts Preserves zero during negation.
packages/​melonjs/​src/​math/​observableVector2d.ts Preserves zero during negation.
packages/​melonjs/​src/​level/​gltf/​GLTFModel.js Declares and preserves animation callbacks.
packages/​melonjs/​src/​input/​keyboard.ts Updates the grounded-jump documentation example.
packages/​melonjs/​src/​index.ts Exports RaycastOptions.
packages/​melonjs/​src/​geometries/​box3d.ts Exports the internal footprint minimum.
packages/​melonjs/​src/​application/​settings.ts Clarifies antialiasing behavior.
packages/​melonjs/​skills/​melonjs/​SKILL.md Adds 3D platformer guidance.
packages/​melonjs/​skills/​melonjs-sprites-and-animation/​SKILL.md Documents animation callback typings.
packages/​melonjs/​skills/​melonjs-performance/​SKILL.md Adds broadphase tuning guidance.
packages/​melonjs/​skills/​melonjs-math/​SKILL.md Explains matrix transforms and determinants.
packages/​melonjs/​skills/​melonjs-deployment/​SKILL.md Updates download-size estimates.
packages/​melonjs/​skills/​melonjs-camera-and-drawing/​SKILL.md Clarifies canvas allocation and typing.
packages/​melonjs/​package.json Updates engine version.
packages/​examples/​tsconfig.app.json Enables ES2022 library typings.
packages/​examples/​src/​main.tsx Registers the 3D Platformer.
packages/​examples/​src/​examples/​whac-a-mole/​play.ts Uses image loader keys.
packages/​examples/​src/​examples/​webgpu/​ExampleWebGPU.tsx Corrects renderer typing.
packages/​examples/​src/​examples/​waterOverworld/​entities.ts Corrects types and grounded jumping.
packages/​examples/​src/​examples/​ui/​ExampleUI.tsx Corrects optional settings and child access.
packages/​examples/​src/​examples/​toon/​ExampleToon.tsx Uses built-in background and orbit APIs.
packages/​examples/​src/​examples/​tiledMapLoader/​ExampleTiledMapLoader.tsx Narrows levels to TileMap.
packages/​examples/​src/​examples/​texturePacker/​ExampleTexturePacker.tsx Corrects position and texture inputs.
packages/​examples/​src/​examples/​spriteIlluminator/​ExampleSpriteIlluminator.tsx Uses texture keys and explicit overrides.
packages/​examples/​src/​examples/​slingshot/​ExampleSlingshot.tsx Separates texture filtering from antialiasing.
packages/​examples/​src/​examples/​slingshot/​entities/​Rival.ts Types ancestor removal.
packages/​examples/​src/​examples/​slingshot/​assets.ts Types parser callbacks and asset names.
packages/​examples/​src/​examples/​skinnedCharacter/​ExampleSkinnedCharacter.tsx Uses camera orbit.
packages/​examples/​src/​examples/​pool-matter/​entities/​ball.ts Corrects collision-hook typing.
packages/​examples/​src/​examples/​plinko-planck/​createGame.ts Omits absent scale targets.
packages/​examples/​src/​examples/​platformer3d/​ui/​style.ts Defines HUD text styling.
packages/​examples/​src/​examples/​platformer3d/​ui/​Overlay.ts Coordinates HUD, hints, and completion card.
packages/​examples/​src/​examples/​platformer3d/​ui/​formatTime.ts Formats run times.
packages/​examples/​src/​examples/​platformer3d/​level/​Sky.ts Draws the gradient sky.
packages/​examples/​src/​examples/​platformer3d/​level/​lights.ts Configures scene lighting.
packages/​examples/​src/​examples/​platformer3d/​level/​Level.ts Assembles the playable level.
packages/​examples/​src/​examples/​platformer3d/​level/​layout/​types.ts Defines level-placement types.
packages/​examples/​src/​examples/​platformer3d/​level/​layout/​scenery.ts Places grass and clouds.
packages/​examples/​src/​examples/​platformer3d/​level/​layout/​ramps.ts Calculates ramp placements.
packages/​examples/​src/​examples/​platformer3d/​level/​layout/​platforms.ts Defines the platform route.
packages/​examples/​src/​examples/​platformer3d/​level/​layout/​platformModels.ts Records platform dimensions.
packages/​examples/​src/​examples/​platformer3d/​level/​layout/​pickups.ts Places coins and blocks.
packages/​examples/​src/​examples/​platformer3d/​level/​layout/​landmarks.ts Places start, cloud, and goal.
packages/​examples/​src/​examples/​platformer3d/​level/​GroundProbe.ts Raycasts ground for shadows.
packages/​examples/​src/​examples/​platformer3d/​level/​grass.ts Instances decorative grass.
packages/​examples/​src/​examples/​platformer3d/​input/​touch.ts Configures touch gamepad controls.
packages/​examples/​src/​examples/​platformer3d/​input/​pad.ts Defines gamepad mappings.
packages/​examples/​src/​examples/​platformer3d/​input/​bindings.ts Binds and releases controls.
packages/​examples/​src/​examples/​platformer3d/​input/​axis.ts Combines opposite input actions.
packages/​examples/​src/​examples/​platformer3d/​input/​actions.ts Defines keyboard actions.
packages/​examples/​src/​examples/​platformer3d/​game/​RunClock.ts Times play from first input.
packages/​examples/​src/​examples/​platformer3d/​game/​Respawn.ts Restores fallen heroes through fades.
packages/​examples/​src/​examples/​platformer3d/​game/​PlayStage.ts Creates each game run.
packages/​examples/​src/​examples/​platformer3d/​game/​celebrate.ts Adds completion effects.
packages/​examples/​src/​examples/​platformer3d/​fx/​Puffs.ts Reuses particle burst emitters.
packages/​examples/​src/​examples/​platformer3d/​fx/​bursts.ts Configures dust, sparkles, and debris.
packages/​examples/​src/​examples/​platformer3d/​entities/​Platform.ts Builds mesh-based platform colliders.
packages/​examples/​src/​examples/​platformer3d/​entities/​Piece.ts Shares level-model setup.
packages/​examples/​src/​examples/​platformer3d/​entities/​hero/​walking.ts Calculates camera-relative movement.
packages/​examples/​src/​examples/​platformer3d/​entities/​hero/​HeroHost.ts Defines hero integration services.
packages/​examples/​src/​examples/​platformer3d/​entities/​hero/​GroundShadow.ts Places the hero’s ground shadow.
packages/​examples/​src/​examples/​platformer3d/​entities/​hero/​Footsteps.ts Manages walking audio.
packages/​examples/​src/​examples/​platformer3d/​entities/​hero/​Facing.ts Smoothly turns the hero model.
packages/​examples/​src/​examples/​platformer3d/​entities/​Flag.ts Adds the goal sensor.
packages/​examples/​src/​examples/​platformer3d/​entities/​Cloud.ts Animates decorative clouds.
packages/​examples/​src/​examples/​platformer3d/​entities/​BouncyCloud.ts Adds a bouncing cloud sensor.
packages/​examples/​src/​examples/​platformer3d/​createGame.ts Initializes the 3D example.
packages/​examples/​src/​examples/​platformer3d/​constants/​world.ts Defines world units and axes.
packages/​examples/​src/​examples/​platformer3d/​constants/​pieces.ts Defines platform and coin settings.
packages/​examples/​src/​examples/​platformer3d/​constants/​look.ts Defines colors and overlay depths.
packages/​examples/​src/​examples/​platformer3d/​constants/​hero.ts Tunes movement and jumping.
packages/​examples/​src/​examples/​platformer3d/​constants/​collision.ts Defines collision groups and masks.
packages/​examples/​src/​examples/​platformer3d/​constants/​camera.ts Tunes camera following.
packages/​examples/​src/​examples/​platformer3d/​assets/​piece.ts Converts loaded models into mesh settings.
packages/​examples/​src/​examples/​platformer3d/​assets/​manifest.ts Lists example assets.
packages/​examples/​src/​examples/​platformer/​play.ts Uses typed debug-panel visibility.
packages/​examples/​src/​examples/​platformer/​gameState.ts Guards texture-atlas access.
packages/​examples/​src/​examples/​platformer/​entities/​minimap.ts Corrects level typing and cleanup hook.
packages/​examples/​src/​examples/​platformer/​entities/​coin.ts Types constructors and lifecycle overrides.
packages/​examples/​src/​examples/​platformer/​createGame.ts Uses the atlas image key.
packages/​examples/​src/​examples/​platformer-matter/​play.ts Uses typed debug-panel visibility.
packages/​examples/​src/​examples/​platformer-matter/​gameState.ts Guards texture-atlas access.
packages/​examples/​src/​examples/​platformer-matter/​entities/​minimap.ts Corrects level typing and cleanup hook.
packages/​examples/​src/​examples/​platformer-matter/​entities/​coin.ts Types constructor and reset arguments.
packages/​examples/​src/​examples/​platformer-matter/​createGame.ts Uses public child access and texture keys.
packages/​examples/​src/​examples/​physicsShapes/​ExamplePhysicsShapes.tsx Narrows rendering and body types.
packages/​examples/​src/​examples/​particleReferenceSpace/​ExampleParticleReferenceSpace.tsx Avoids shadowing the inherited tint property.
packages/​examples/​src/​examples/​normalMap/​ExampleNormalMap.tsx Marks lifecycle overrides.
packages/​examples/​src/​examples/​nightcity/​ExampleNightCity.tsx Omits absent emissive settings.
packages/​examples/​src/​examples/​mesh3d/​ExampleMesh3d.tsx Corrects optional-field typing.
packages/​examples/​src/​examples/​materialTextures/​ExampleMaterialTextures.tsx Corrects camera position arguments.
packages/​examples/​src/​examples/​lineCollision/​ExampleLineCollision.tsx Types flat shapes and optional settings.
packages/​examples/​src/​examples/​lights/​ExampleLights.tsx Corrects constructor-parameter typing.
packages/​examples/​src/​examples/​ldtkPlatformer/​world/​world.ts Types the object filter.
packages/​examples/​src/​examples/​ldtkPlatformer/​entities/​teleport.ts Constructs explicit reveal-effect settings.
packages/​examples/​src/​examples/​ldtkPlatformer/​entities/​player.ts Types physics access and removes legacy flags.
packages/​examples/​src/​examples/​ldtkPlatformer/​entities/​item.ts Types ancestor removal.
packages/​examples/​src/​examples/​ldtkPlatformer/​effects/​particles.ts Derives emitter constructor settings.
packages/​examples/​src/​examples/​jungleRabbit/​ui/​menuText.ts Uses shared math helpers.
packages/​examples/​src/​examples/​jungleRabbit/​scenes/​TitleStage.ts Removes redundant transition guarding.
packages/​examples/​src/​examples/​jungleRabbit/​scenes/​GameOverStage.ts Simplifies transition handling and overrides.
packages/​examples/​src/​examples/​jungleRabbit/​fx/​textures.ts Uses the engine canvas allocator.
packages/​examples/​src/​examples/​jungleRabbit/​fx/​scenery.ts Uses shared textures and math helpers.
packages/​examples/​src/​examples/​jungleRabbit/​fx/​props.ts Uses the engine canvas allocator.
packages/​examples/​src/​examples/​jungleRabbit/​entities/​terrain.ts Uses shared interpolation helpers.
packages/​examples/​src/​examples/​isometric3d/​ExampleIsometric3d.tsx Types mesh settings and uses camera orbit.
packages/​examples/​src/​examples/​heatHaze/​ExampleHeatHaze.tsx Handles unavailable captures and corrects types.
packages/​examples/​src/​examples/​groundShadows/​ExampleGroundShadows.tsx Uses shared math constants and clamping.
packages/​examples/​src/​examples/​graphics/​ExampleGraphics.tsx Declares dash-pattern fields.
packages/​examples/​src/​examples/​gradients/​ExampleGradients.tsx Types polygon points and overrides.
packages/​examples/​src/​examples/​gltf/​ExampleGltfCharacter.tsx Uses camera orbit and shared clamping.
packages/​examples/​src/​examples/​forest/​ExampleForest.tsx Uses shared clamping.
packages/​examples/​src/​examples/​earthDefender/​lib/​sphereMath.ts Uses the shared full-turn constant.
packages/​examples/​src/​examples/​earthDefender/​fx/​textures.ts Reuses canvas allocation and removes blank quads.
packages/​examples/​src/​examples/​earthDefender/​fx/​sfx.ts Uses the shared full-turn constant.
packages/​examples/​src/​examples/​earthDefender/​fx/​nebula.ts Uses canvas allocation and math helpers.
packages/​examples/​src/​examples/​earthDefender/​entities/​raid.ts Uses the shared full-turn constant.
packages/​examples/​src/​examples/​earthDefender/​entities/​hunter.ts Uses the shared white texture.
packages/​examples/​src/​examples/​earthDefender/​entities/​dome.ts Uses canvas allocation and math helpers.
packages/​examples/​src/​examples/​earthDefender/​constants.ts Removes obsolete texture-size constants.
packages/​examples/​src/​examples/​clipping/​ExampleClipping.tsx Corrects renderer types and overrides.
packages/​examples/​src/​examples/​blendModeRenderables/​ExampleBlendModeRenderables.tsx Narrows renderer typing.
packages/​examples/​src/​examples/​billboard/​ExampleBillboard.tsx Uses texture keys and camera orbit.
packages/​examples/​src/​examples/​aseprite/​entities.ts Uses the atlas image key.
packages/​examples/​src/​examples/​aquarium/​ExampleAquarium.tsx Guards frame capture and corrects typings.
packages/​examples/​src/​examples/​afterBurner/​textures.ts Uses engine canvas allocation.
packages/​examples/​src/​examples/​afterBurner/​backdrop/​SkyGradient.ts Uses the engine renderer and canvas allocator.
packages/​examples/​src/​examples/​afterBurner/​backdrop/​MountainHorizon.ts Uses the engine renderer and canvas allocator.
packages/​examples/​package.json Enables project-reference type checking.
packages/​examples/​LICENSE.md Credits platformer assets.
packages/​debug-plugin/​package.json Updates debug-plugin version.
packages/​debug-plugin/​CHANGELOG.md Records 3D hitbox-overlay support.
AGENTS.md Documents the examples type-check command.

Review effort: Balanced

…f keeps its depth

Two findings of the review, both reproduced in the running example first.

The bouncy cloud threw the hero on any overlap, so a jump into it from
under it was boosted too. Hero#bounce() now answers only on the way down
and says whether it threw; the cloud squashes only then. A hero rising at
12 into the cloud goes on up and is thrown once it turns; one falling onto
it is thrown as before.

A particle's depth is counted from its emitter's, and the three emitters
are re-aimed for each burst: a burst still in the air at depth 100 jumped
to 300 when the next was let off there. The change is taken off the live
particles before the emitter moves; they stay at 100. The particles skill
has a symptom row for it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Copilot AI balanced review requested due to automatic review settings December 5, 2026 07:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The first pulse is never destroyed, leaving its GL program and global context listeners alive; cleanup must run even if the chaining assertion fails.

1 open issue
2 resolved since last review

Review effort: Balanced

The test built two pulses and drew only the second: the first kept its
program and its context listeners. It now builds one, draws it (which
destroys it) and then checks what setTime() gave back, so the pulse goes
whether or not the check passes. It still fails with the return taken out.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JnzwA1sfRfGDyxaPSzYMnN
Copilot AI balanced review requested due to automatic review settings December 5, 2026 07:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because animation advances during teleport travel, potentially causing the reveal to use a different player silhouette than the hide.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@obiot
obiot merged commit bb41e6a into master Dec 5, 2026
7 checks passed
@obiot
obiot deleted the claude/peaceful-ritchie-2vbnh4 branch December 5, 2026 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants