Skip to content
Back to skills

Show Debug Overlay

ASecurity

The engine draws a built-in overlay (FPS, backend, resolution, and your own rows). Turn parts on in `configure()` and feed it rows from your game.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
developmentawsbackend

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add blit386/blit386 --skill show-debug-overlay --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Show Debug Overlay?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Show Debug Overlay
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/blit386-show-debug-overlay/badge)](https://www.skillsdirectory.com/skills/blit386-show-debug-overlay)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: show-debug-overlay
description:
  Show live values on screen (FPS, score, your own rows, palette grid, timing chart) with the engine's built-in debug
  overlay - do not hand-roll a HUD. Use when the user wants to see numbers while developing. To run code only in dev
  builds, use `use-dev-mode` instead.
---

# Show the debug overlay

The engine draws a built-in overlay (FPS, backend, resolution, and your own rows). Turn parts on in `configure()` and
feed it rows from your game.

## Turn it on in configure()

```js
configure() {
    return {
        isOverlayEnabled: true, // master switch (on by default)
        isOverlayVisibleAtStart: true, // show the body on frame 1 (default: hidden until toggled)
        isOverlayPaletteEnabled: true, // live palette swatch grid
        isOverlayTimingChartEnabled: true, // scrolling update/render timing chart
        isOverlayAudioMetersEnabled: true, // volume meters for the sound buses
        isOverlayRendererDiagnosticsBarEnabled: true, // extra renderer details bar
    };
}
```

The body toggles with the Backquote key or the bottom-left corner. Hide the hint icon with
`isOverlayToggleHintVisible: false`; lock visibility with `isOverlayToggleEnabled: false`; turn the whole overlay off
with `isOverlayEnabled: false`.

## Add your own rows

```js
overlayRows() {
    return [
        { leftText: 'Score', rightText: String(this.score) },
        { leftText: 'Lives', rightText: String(this.lives) },
    ];
}
```

## Mark events on the timing chart

```js
update() {
    // Drop the marker once, the moment the level starts - not every frame, or you stack duplicates.
    if (this.levelStarted && !this.levelTagged) {
        BT.assignTag('Level 2'); // a labeled marker on the chart
        this.levelTagged = true;
    }
}
```

## Key calls

- Configure flags (all `is*`): `isOverlayEnabled`, `isOverlayVisibleAtStart`, `isOverlayToggleHintVisible`,
  `isOverlayToggleEnabled`, `isOverlayPaletteEnabled`, `isOverlayTimingChartEnabled`, `isOverlayAudioMetersEnabled`
  (live volume meters for the sound buses), `isOverlayRendererDiagnosticsBarEnabled` (an extra bar with renderer
  details).
- `overlayRows()` - optional method on your game class returning `{ leftText, rightText? }[]`.
- `BT.assignTag(label?)` (method) - drop a labeled marker (needs the timing chart enabled).

## Notes

- The overlay draws after your `render()`, so leave a little space at top and bottom, or disable it for immersive
  scenes.
- Rebuild the rows array cheaply; `overlayRows()` runs every frame.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.