Skip to main content

cTurtle API reference

The functions and types cTurtle adds for your game scripts, one page per package. Each page starts with the include line that makes the package available.

Printing, text, math, files, time and the other basics come from the BT standard library.

Functions and methods can fail unless marked infallible; handle a failure with ? or !! (see Errors).

Engine​

PackageContents
cturtle/armor
cturtle/audio
cturtle/console
cturtle/entity_filter
cturtle/eventsEvents let one part of a game tell the rest that something happened.
cturtle/game_manager
cturtle/game_session
cturtle/log
cturtle/manifest
cturtle/mesh_pipeline
cturtle/particles
cturtle/render
cturtle/studio
cturtle/world
cturtle/yaml

UI​

PackageContents
cturtle/ui
cturtle/ui/btlib
cturtle/ui/btlib/code_editor
cturtle/ui/btlib/engine

Libraries​

PackageContents
cturtle/btpostgres
cturtle/bttls
cturtle/btweb