ChaiLove API  0.28.0
Data Fields
love::config Class Reference

The configuration object for ChaiLove. More...

Data Fields

std::string identity = "chailove"
 The machine name of the project. More...
 
std::string version
 The ChaiLove version the game was made on.
 
WindowConfig window
 The window configuration. More...
 
ModuleConfig modules
 Enable or disable modules. More...
 
std::map< std::string, bool > options
 Generic map of boolean configuration options. More...
 
bool console = false
 Attach the in-game console. More...
 

Detailed Description

The configuration object for ChaiLove.

This is set through the conf callback:

def conf(t) {
t.version = "0.27.0" // Version of ChaiLove
t.identity = "mygame" // Machine name of your game
t.window.title = "My Game" // Human-readable name
t.window.width = 1024 // Game width
t.window.height = 768 // Game height
t.console = false // Developer console, toggle with tilde
}

Field Documentation

◆ console

bool love::config::console = false

Attach the in-game console.

When t.console = true, will allow use of the in-game console. Use the tilde key to display.

Example

t.console = true
See also
love.console

◆ identity

std::string love::config::identity = "chailove"

The machine name of the project.

This should represent a machine name of your game.

Example

t.identity = "mygame"

◆ modules

ModuleConfig love::config::modules

Enable or disable modules.

Example

t.modules.sound = false

◆ options

std::map<std::string, bool> love::config::options

Generic map of boolean configuration options.

Example

t.options["alphablending"] = true
t.options["highquality"] = true

◆ window

WindowConfig love::config::window

The window configuration.

Example

t.window.title = "My Game"
t.window.width = 1024
t.window.height = 768
t.window.bbp = 32