Water

From Wiki of ZZT
Revision as of 22:13, 10 February 2021 by The Green Herring (talk | contribs) (Your way is blocked by water.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Water
ZZT-OOP namewater
Internal ID19
Character#char 176 (0xB0)
Categoryterrain
Stats?no
Other traits
Effect on movementwall
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.