On this page
britzl/defcon/defcon.console
Defold console helpers for in-game debugging and developer overlays.
- GitHub: britzl/defcon — pinned to
2fe3aed- Pick a release from britzl/defcon releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as console from "defcon.console"
- Pick a release from britzl/defcon releases and add its Source code (zip) URL (or a packaged
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:stringdescription:stringcallback:CommandCallback
set_environment(env: unknown)
Parameters
env:unknown