build-app
Installation
SKILL.md
Build an Engine application
Read package.json and the entry point, keep the surface that owns the lifecycle, and read only its
reference: direct Engine, React, or
Web Components. Choose from imports and markup, not dependencies.
Bootstrap
- Input is opt-in.
app.keyboard,mouse,touch,gamepads, andelementInputstaynullunless passed tonew Application(canvas, { ... }); UI buttons neednew ElementInput(canvas). - The Engine adds no window resize listener; call
app.resizeCanvas()from your own handler. graphicsDevice.maxPixelRatiodefaults to 1. Raise it, at most towindow.devicePixelRatio, only where the target holds its frame budget, callapp.resizeCanvas(), and confirm withcanvas.width / canvas.clientWidth.- Rigid bodies stay inert until Ammo loads through
WasmModule. Copy the loader from thephysics/falling-shapesexample withfind-examples. devtoolsdefaults totrue, so debugging tools can find the app (inspect-runtime). Set it tofalseonly to hide a production build.