Water: Difference between revisions
(Your way is blocked by water.) |
m (byte) |
||
Line 1: | Line 1: | ||
{{Element | {{Element | ||
|zzt-oop name=water | |zzt-oop name=water | ||
|id=19 | |id={{Byte|19}} | ||
|char={{CharSwatch|176}} | |char={{CharSwatch|176}} | ||
|stats=no | |stats=no |
Revision as of 19:07, 13 February 2021
Water | |
---|---|
ZZT-OOP name | water |
Internal ID | 19 (0x13) |
Character | #char 176 ░ (0xB0) |
Category | terrain |
Stats? | no |
Other traits | |
Effect on movement | wall |
Destructible? | no |
Uses ZZT-OOP color names? | yes |
The water element is one of the built-in materials in ZZT. It impedes all movement, but unlike other wall tiles, it can be crossed by bullets or stars. In addition, the shark can only move within water. Whenever the player touches water, the engine plays a special sound effect and announces "Your way is blocked by water." Neither of these can be removed without editing the engine, or using a fork that does so like CleanZZT.
By default, when placed by the built-in editor, water is blinking blue on light gray (0xF9), which, unless blinking is turned off, results in default-color sharks appearing as solid blocks. However, in DEMO.ZZT, water is shown as blinking white on dark blue (0x9F), where the sharks are clearly visible, suggesting this was the default color at the time. Water does not assume either color when placed programmatically, so an object can place water in any of the default ZZT-OOP colors, or overwrite an item or colored empty to use its color. It can be drawn in any of the available colors with an external editor.
The forest uses the same character as water, #char 176 ░ (0xB0), but is traversible.
Elements | |
---|---|
Special | |
Items | |
Terrain | |
Creatures | |
Text |