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

Difference between revisions of "Infoblock"

From SuperTux
Jump to: navigation, search
(+Category:Game Object)
(Added an introduction and an image.)
 
Line 1: Line 1:
This is an info block it can help you by jumping
+
[[Image:Infoblock.png|right]]
 +
An '''Infoblock''' is a [[game object]] which is used to provide non-obvious information for the player. It is displayed as a green block with a white exclamation mark. When jumping against the block from below, a message is displayed.
  
 
== Format ==
 
== Format ==

Latest revision as of 06:11, 21 February 2010

Infoblock.png

An Infoblock is a game object which is used to provide non-obvious information for the player. It is displayed as a green block with a white exclamation mark. When jumping against the block from below, a message is displayed.

Format

The message is formatted line-wise. The first character of each line determines how the line is formatted. The first character is not printed. The parsing is done in three functions defined in src/supertux/info_box_line.cpp. The colors are defined in src/supertux/colorscheme.cpp.

Character Type Font size Color
\t (tab) Normal Normal Normal color (white)
(space) Small Small Small color (white)
- (dash) Heading Big Heading color (yellow)
* (asterisk) Reference Normal Reference color (blue)
# (hash) Normal (left) Normal Normal color (white)
! (exclamation mark) Image n/a n/a