Skip to main content

Command-line tools

The programs you run while making a cTurtle game. Most of the time you work in Studio, which runs these tools for you; use the command line to build in scripts or CI, write standalone BT programs, or use another editor.

ToolUse it to
CTurtleStudioStart cTurtle Studio, optionally opening a project.
ctgameBuild your game into a desktop executable or a web build.
ctbtRun a BT script, or build it into a standalone program (tools, servers, utilities).
bt-uiOpen a BT UI app in a window, with hot reload while you edit it.
wasm-serveTest a web build in your browser on your own machine.
ctfont-packCombine TrueType fonts into one .ctfont with fallbacks.
CTurtleHostRun a game that has a native (C) game module outside Studio.
Editor integrationsSet up VS Code or a JetBrains IDE for BT: completion, errors, debugging.
bt-lspCheck BT scripts for errors in CI, or connect another editor.
bt-dapDebug BT code from an editor other than VS Code or JetBrains.
Engine environmentEnvironment variables for measuring performance, capturing frames and debugging a running game.

Where the tools are​

The Studio package contains CTurtleStudio, ctgame, ctbt and the debugging tools. The VS Code extension and JetBrains plugin bundle their own bt-lsp, bt-dap, ctbt and bt-run. The other tools come with a full build of the cTurtle engine.

Keep each tool in the folder it was installed in: several of them find helper programs and engine files next to themselves.

Conventions​