Text: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Added some unique properties of text)
(Adding list of IDs)
Line 2: Line 2:
|name=Text
|name=Text
|zzt-oop name=N/A
|zzt-oop name=N/A
|id=Multiple
|id=Multiple, used to encode background color:
* 2F: Blue
* 30: Green
* 31: Cyan
* 32: Red
* 33: Purple
* 34: Brown
* 35: Black
|color=White foreground; background determined by ID
|color=White foreground; background determined by ID
|char=Any (determined by tile's color byte)
|char=Any (determined by tile's color byte)

Revision as of 06:55, 27 May 2020

Text
ZZT-OOP nameN/A
Internal IDMultiple, used to encode background color:
  • 2F: Blue
  • 30: Green
  • 31: Cyan
  • 32: Red
  • 33: Purple
  • 34: Brown
  • 35: Black
CharacterAny (determined by tile's color byte)
Default colorWhite foreground; background determined by ID
Stats?no
Other traits
Effect on movement{{{effect on movement}}}
Uses ZZT-OOP color names?{{{uses zzt-oop color}}}

Text is a terrain type that can have any of the 256 characters. Its intended use is for putting text labels on a board's terrain.

Text is a unique element in several ways:

  • Its display character is determined by color: Internally, ZZT stores character data where color bytes would normally go, presumably to reduce the number of stats that a long run of text would otherwise require.
  • It has more than one ID: Because the color byte is occupied, ZZT encodes the text's background color by having multiple different IDs.
  • Its foreground color cannot be changed.
  • It cannot be referenced in ZZT-OOP: e.g., there is no way to change all text tiles to another element type.