ClosedBit library catalog

Libraries

Browse shipped Studio and Game libraries, inspect callable surfaces, and copy real `.cbp` library code.

Source browser

Open a library and copy the code.

Usage docs explain how to call libraries; this page shows the actual `.cbp` source files.

Studio libraries

Game libraries

studio/CB-Action.cbp
library CB-Library;

fn CB-Action.ready(u256 frame, u256 cooldownFrames, u256 lastFrame) -> bool {
    return frame >= lastFrame + cooldownFrames;
}

fn CB-Action.force_passes(f64 incomingForce, f64 threshold) -> bool {
    return incomingForce >= threshold;
}

fn CB-Action.triggered(bool input, f64 incomingForce, f64 threshold, i256 health) -> bool {
    if (input) { return true; }
    if (incomingForce >= threshold) { return true; }
    return health <= 0;
}

Source locations

Every shipped library source file.

The website mirrors the same `.cbp` files installed with the desktop products, so developers can inspect the callable surface before building.

Studio library sources
Installed root: C:\Program Files\ClosedBit\libraries\
Website mirror: /docs/libraries/source/studio/

CB-Action.cbp
CB-Arcade.cbp
CB-Audio.cbp
CB-Bit.cbp
CB-Breakable.cbp
CB-Console.cbp
CB-Data.cbp
CB-Generation.cbp
CB-GenerationOptimized.cbp
CB-GPU.cbp
CB-Library.cbp
CB-Math.cbp
CB-Network.cbp
CB-Parsing.cbp
CB-Physics.cbp
CB-Render.cbp
CB-Runtime.cbp
CB-Shader.cbp
CB-Storage.cbp
CB-UI.cbp
CB-Understanding.cbp
Game library sources
Installed root: C:\Program Files\ClosedBit Games\libraries\
Website mirror: /docs/libraries/source/game/

CB-Action.cbp
CB-Arcade.cbp
CB-Audio.cbp
CB-Breakable.cbp
CB-Camera.cbp
CB-Game.cbp
CB-GameAI.cbp
CB-GamePhysics.cbp
CB-HUD.cbp
CB-Input.cbp
CB-Material.cbp
CB-Mesh.cbp
CB-Network.cbp
CB-Scene.cbp
CB-Shader.cbp
CB-Terrain.cbp