closedbit-game

Game Studio

The game-focused lane for scenes, input, rendering, runtime packages, game `.exe` exports, copyable starter loops, and the `closedbit-game` license record.

Game workflow

Build games with the ClosedBit runtime path.

Use this lane for game templates, render loops, input, saving, and runtime exports through the Windows Game Studio Console.

Scenes

Use the Game Studio scene surface and insert matching `.cbp` script.

Input

Write keyboard, mouse, and window loop code in `.cbp`.

Rendering

Use `CB-Render` helpers for windows, text, shapes, grids, and batches.

Exports

Build normal game `.exe` output or `.cba` runtime packages.

Game Studio actions
help
check
save
compile exe small fps graphics threaded usage_high
compile exe small fps graphics threaded usage_high msi
compile cba small fps graphics threaded
compile dll small fps graphics threaded
compile library small graphics threaded
target exe
target cba
target library
Starter game loop
library CB-Render
library CB-Input
library CB-Storage

fn main() {
    init_window(960, 540, "ClosedBit Game")
    while window_open() {
        handle_events()
        clear(0x071018)
        if key_down(KEY_W) {
            draw_text(24, 64, "moving forward", 0xFFD36A, 18)
        }
        draw_text(24, 24, "ClosedBit Game", 0x64F1AC, 24)
        present()
    }
}