Skip to content

devtools

const devtools: (options?) => Plugin

Development overlay: fps, main-thread ms per frame, entity, sprite and draw call counts. Click a sprite while the panel is open to inspect its components live. Add it after webgl2(). It is DOM, not sprites, so it survives scene changes and never shows up in the counts it measures. It also exposes the game as ollin.game in the browser console, for poking at entities while it runs.

DevtoolsOptions

Plugin