Skip to content

Configuring Your Game

Your project will initialize with a file called turbo.toml. You can modify this file to change various configuration options for your game.

Metadata

Basic metadata for your game.

turbo.toml
name = "My Project Name"
version = "0.1.0"
authors = ["Anonymous"]
description = "An awesome game made in Turbo!"
OptionTypeDefaultDescription
namestring"Untitled"Game name. Also becomes the window title.
versionstringGame version.
authorsstring[]List of authors.
descriptionstringGame description.

Canvas

Adjust your game resolution and rendering behavior.

Basic
[canvas]
width = 128
height = 128
OptionTypeDefaultDescription
widthnumber256Game canvas width in pixels.
heightnumber144Game canvas height in pixels.
auto-sizenumberIf set, width and height are ignored and the game canvas will scale with the window by the given scale factor.
fpsnumber60Game frame rate.

Font

Configure default text rendering behavior and load custom fonts.

Basic
[font]
default-size = 12
OptionTypeDefaultDescription
include-builtin-fontsbooltrueWhether to include system fonts: small, medium, and large.
default-fontbool"medium"Name of the font to use when none is specified.
default-sizebool12Default font size to render font glyphs at.

Shader

Configure shaders.

turbo.toml
[shader]
default-surface-shader = "my-custom-shader"
OptionTypeDefaultDescription
default-surface-shaderstringThe shader your game will use by default

Turbo OS

Configure the Turbo OS network host.

turbo.toml
[turbo-os]
api-url = "https://os.turbo.computer"
OptionTypeDefaultDescription
api-urlstringThe host URL to authenticate Turbo OS users with and upload programs to