blocked

From Wiki of ZZT
Jump to navigation Jump to search

blocked is an internal object flag in ZZT-OOP. This flag is true for an object if there is any obstruction in the provided direction, even if the object is capable of pushing it out of the way.

Usage Example

This object changes its char graphic depending on whether it's blocked to the east.

@object
#cycle 1

:loop
#if blocked e char 2
#if not blocked e char 1
/i#loop