tbftss/README_DEV.md

24 lines
980 B
Markdown
Raw 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
By default, the game will output WARN level messages, or greater. To see INFO level messages, you can use:
`./tbftss -info`
Note that using `-debug` will automatically output DEBUG level messages.