Forest: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Bip bo beep 🎵)
 
m (zzt-oop name, byte)
Line 1: Line 1:
{{Element
{{Element
|id=20
|zzt-oop name=forest
|id={{Byte|20}}
|color={{ColorSwatch|fg=black|bg=dark green}}
|color={{ColorSwatch|fg=black|bg=dark green}}
|char={{CharSwatch|176}}
|char={{CharSwatch|176}}

Revision as of 19:08, 13 February 2021

Forest
ZZT-OOP nameforest
Internal ID20 (0x14)
Character#char 176 â–‘ (0xB0)
Default colorblack on dark green (0x20)
Categoryterrain
Stats?no
Other traits
Effect on movementfloor
Destructible?no
Uses ZZT-OOP color names?no

The forest element is one of the built-in terrain elements of ZZT. It is a special kind of floor that can only by traversed by the player and not by creatures. When the player touches it, a special sound effect plays and it is replaced with an empty. This is the only way to destroy a forest tile, as it is impervious to bullets, stars and bombs. In Super ZZT, crossing forest tiles plays one note in an eight-note sequence for each individual tile, which repeats after the eighth note, and leaves a colored floor instead. When a player crosses a forest tile for the first time in a world, the engine announces that "A path is cleared through the forest."

A forest tile cannot be programmatically placed in any color except its default black on dark green (0x20), but it can be used to programmatically create elements of that color by overwriting it with an applicable element, such as a normal or a gem. It can also be used to create a second and more unusual color: overwriting it with a door produces a blinking black door, which can be then be replaced with an applicable element to create a blinking white on black (0x8F) element.

The water element uses the same character, #char 176 â–‘ (0xB0), but is not traversible except by sharks or projectiles.