You can run the game by just launching the executable. If your executable resides in a build tree, check this section for additional help.
If you would like to specify a custom configuration file, you can do so with the command-line options --configuration-file
or -c
. For example, you could provide the flag like this from the source directory:
$ ./build/shiromino --configuration-file ./shiromino.ini
Besides the game executable, the game needs to resolve the following files or paths in order to run properly.
This configuration file is where you specify key bindings and other settings.
If no configuration file is specified, the game will look for this file here (in order):
<executable directory>/shiromino.ini
<executable directory>/../etc/shiromino.ini
<current working directory>/shiromino.ini
$XDG_CONFIG_HOME/shiromino.ini
$HOME/.config/shiromino.ini
/usr/local/etc/shiromino.ini
/etc/shiromino.ini
The first path that matches will be honored.
If none match, the game will try to create a default configuration file here (in order):
$XDG_CONFIG_HOME/shiromino.ini
$HOME/.config/shiromino.ini
<executable directory>/shiromino.ini
SHARE_PATH
is a path to a directory which contains static game data such as assets or the license. The game assumes that there is a directory within SHARE_PATH
named data
.
If SHARE_PATH
is left unspecified, the game will look for it here (in order):
<executable directory>
<executable directory>/../share/shiromino
<current working directory>
$XDG_DATA_HOME/shiromino
$HOME/.local/share/shiromino
/usr/local/share/shiromino
/usr/share/shiromino
Any path in this list will match only if it contains a directory named data
.
The first path that matches will be honored.
You can also specify a custom SHARE_PATH
in the configuration file. If SHARE_PATH
is relative, the path is assumed to be relative to the configuration file.
CACHE_PATH
is a path to a directory which contains dynamic game data such as high scores.
If CACHE_PATH
is left unspecified, the game will look for it here (in order):
<executable directory>
<executable directory>/../var/cache/shiromino
<current working directory>
$XDG_CACHE_HOME/shiromino
$HOME/.cache/shiromino
/usr/local/var/cache/shiromino
/var/cache/shiromino
Any path in this list will match only if it contains a file named shiromino.sqlite
.
The first path that matches will be honored.
If none match, the game will try to create the following directories and use them (in order):
$XDG_CACHE_HOME/shiromino
$HOME/.cache/shiromino
<executable directory>
You can also specify a custom CACHE_PATH
in the configuration file. If CACHE_PATH
is relative, the path is assumed to be relative to the configuration file.