This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

Difference between revisions of "Console"

From SuperTux
Jump to: navigation, search
 
Line 11: Line 11:
  
 
Following is a list of useful scripts to run in the console:
 
Following is a list of useful scripts to run in the console:
;quit
+
;quit()
 
:quits SuperTux
 
:quits SuperTux
;restart
+
;restart()
 
:restarts the current level
 
:restarts the current level
 +
;whereami()
 +
:prints Tux' coordinates

Revision as of 16:56, 8 May 2006

The Console is a panel normally hidden from view. Its usage is twofold:

  • It displays informational, warning and error messages that occur during gameplay, alerting players of things like low diskspace, broken levels, ...
  • It helps debug the engine and test levels by allowing direct execution of Squirrel script commands (see [Scripting Reference])

The Console pops into view for a short time whenever new messages are printed. To review old messages and enter commands, the console needs to be activated.

By default no key is assigned to opening the console. This can be done by editing the SuperTux configuration file and adding a key binding for "console".

Commands

Following is a list of useful scripts to run in the console:

quit()
quits SuperTux
restart()
restarts the current level
whereami()
prints Tux' coordinates