Program parameters
No command line parameters are required for the normal start of Retro Carnage. However, the built-in switches can be useful for generating debug output or enabling tests. The following overview therefore presents all the options with which the behavior of Retro Carnage can be controlled externally.
Program parameters
The command line parameters must be passed to Retro Carnage in a specific order.
Position | Value | Description |
---|---|---|
1 | Path | Full or relative path to folder containing the game assets. Useful when running the game inside an IDE. |
2 | "debug" | Enables the debug mode. This will e.g. enable verbose debug output and debug rectangles in the graphic output. |
Example
- Example with just the asset path
./retro-carnage ../retro-carnage-assets
- Example with both parameters given
./retro-carnage ../retro-carnage-assets debug
Environment variables
Environment variables are used in situations where commandline parameters are inconvinient.
Name | Value | Description |
---|---|---|
RC-ASSETS | Path | Full or relative path to folder containing the game assets. Required when running unit tests. |
RC-SOUND | "no-fx;no-music" | Semicolon separated list of sound settings. no-fx will disable sound effects. no-music will disable music. no-fx;no-music will disable all sound. Useful when running headless on systems that do not support sound. |