Message timer

From Wiki of ZZT
Revision as of 00:04, 14 February 2021 by RT-55J (talk | contribs) (see also)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Message timer
ZZT-OOP nameN/A
Internal ID2 (0x02)
Character#char 32 (0x20)
Stats
Default cycle1
P2ticks remaining
Other traits
Effect on movementsolid
Destructible?no
Uses ZZT-OOP color names?N/A

The message timer is the colloquial name for the internal element that handles displaying text at the bottom of the screen.

Messages can be emitted by objects or by various internal events. When a message is emitted, the game creates a message timer just outside the visible portion of the screen at coordinate (0,0). The number of ticks a message is displayed for is scaled according to the game speed at the time of the message's creation. Most in-game messages (including ones generated by objects) are displayed for 200/TickTimeDuration ticks.

The message timer displays the contents of the board's message parameter on the bottom row of the screen, cycling through ZZT's 7 built-in colors during the process. The message can be up 58 characters in length, and the message timer appends spaces to both sides of it -- however, sufficiently long messages can visually overwrite a portion of the status bar that the game does not clean up (when the message is finished only the border of the screen is visually refreshed).

See Also