On this page

britzl/defcon/defcon.console

Defold console helpers for in-game debugging and developer overlays.

  • GitHub: britzl/defcon — pinned to 2fe3aed
    1. Pick a release from britzl/defcon releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Run bunx @defold-typescript/cli resolve to materialize its types.
    3. Import it under a namespace alias of your choice:
      import * as console from "defcon.console"

Functions

start(port: number)

Parameters

  • port: number

stop()

update()

register_module(module: unknown)

Parameters

  • module: unknown

register_command(command: string, description: string, callback: CommandCallback)

Parameters

  • command: string
  • description: string
  • callback: CommandCallback

set_environment(env: unknown)

Parameters

  • env: unknown