Text: Difference between revisions
Jump to navigation
Jump to search
(Adding list of IDs) |
(Fix up Elements infobox, add category) |
||
Line 10: | Line 10: | ||
* 34: Brown | * 34: Brown | ||
* 35: Black | * 35: Black | ||
|color=White foreground; background | |color=White foreground; element ID determines background | ||
|char=Any (determined by tile's color byte) | |char=Any (determined by tile's color byte) | ||
|stats=no | |stats=no | ||
|movement | |effect on movement=wall | ||
| | |uses zzt-oop color=N/A | ||
}} | }} | ||
Line 25: | Line 25: | ||
* Its foreground color cannot be changed. | * 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. | * It cannot be referenced in ZZT-OOP: e.g., there is no way to change all text tiles to another element type. | ||
[[Category:Elements]] |
Revision as of 05:30, 31 May 2020
Text | |
---|---|
ZZT-OOP name | N/A |
Internal ID | Multiple, used to encode background color:
|
Character | Any (determined by tile's color byte) |
Default color | White foreground; element ID determines background |
Stats? | no |
Other traits | |
Effect on movement | wall |
Uses ZZT-OOP color names? | N/A |
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.