Kind: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


Only seven colors are supported, matching the seven colors exposed by the [[built-in editor]]: '''blue''', '''green''', '''cyan''', '''red''', '''purple''', '''yellow''' and '''white'''.
Only seven colors are supported, matching the seven colors exposed by the [[built-in editor]]: '''blue''', '''green''', '''cyan''', '''red''', '''purple''', '''yellow''' and '''white'''.
== Quirks ==
* An empty string refers to the first [[element]] in the engine without a name, which happens to be the [[board edge]],

Revision as of 11:18, 24 December 2025

A kind is a type of ZZT-OOP argument that refers to a type of element. It consists of an element name, optionally prefixed by a color; for example, red solid refers to a red solid, while normal refers to normals of any color.

Only seven colors are supported, matching the seven colors exposed by the built-in editor: blue, green, cyan, red, purple, yellow and white.

Quirks

  • An empty string refers to the first element in the engine without a name, which happens to be the board edge,