tbftss/README_DEV.md

24 lines
986 B
Markdown
Raw Permalink Normal View History

2016-02-24 16:54:14 +01:00
# DEVELOPMENT / DEBUG Stuff
2016-02-24 08:25:17 +01:00
2016-03-28 19:26:20 +02:00
You can run the game with:
2016-02-24 08:25:17 +01:00
2016-02-24 16:54:14 +01:00
`./tbftss -debug`
2016-02-24 08:25:17 +01:00
2016-03-28 19:26:20 +02:00
to access some (rather crude) debugging and development stuff, activated by pressing certain keys on the keyboard. Press the following keys to toggle the states (see the console for output). Note to packagers - you shouldn't distribute the game in this state (either as a hard compile or run script), as it could result in unexpected behaviour.
2016-02-24 08:25:17 +01:00
2016-02-24 16:54:14 +01:00
* [1] - Make the player immortal
* [2] - Unlimited missiles
* [3] - Prevent the AI from using weapons
* [4] - Prevent the AI from taking any further actions
* [5] - Make everything immortal
* [6] - Immediately complete the current mission
2016-02-24 08:25:17 +01:00
2016-02-24 16:54:14 +01:00
* [9] - Show the current frames per second
2016-03-06 10:48:09 +01:00
* [0] - Take a screenshot once per second, saving to /tmp/tbftss on Linux.
2016-03-28 19:26:20 +02:00
2016-05-16 13:52:43 +02:00
By default, the game will output INFO level messages, or greater. To reduce to WARN level messages, you can use:
2016-03-28 19:26:20 +02:00
2016-05-16 13:52:43 +02:00
`./tbftss -warn`
2016-03-28 19:26:20 +02:00
Note that using `-debug` will automatically output DEBUG level messages.