Star

From Wiki of ZZT
Revision as of 07:31, 13 February 2021 by RT-55J (talk | contribs) (Is that 255 ticks or should it be 256 ticks? idk, but I almost feel guilty for finding a way to make stars ''worse'')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Star
ZZT-OOP namestar
Internal ID15 (0x0F)
Character#char 83 S (0x53)
#char 179 (0xB3)
#char 47 / (0x2F)
#char 196 (0xC4)
#char 92 \ (0x5C)
Default colorwhite on black (0x0F)
Stats
Default cycle1
P2ticks remaining
Other traits
Effect on movementdamaging
Destructible?no
Uses ZZT-OOP color names?N/A

The star is an enemy projectile that seeks after the player, is indestructible, and disappears after 100 ticks. Stars can be generated by tigers and spinning guns, and also by objects using the #throwstar command or the #put command (which generates stars that last for 255 ticks).

Stars move once every two ticks. They push any pushable elements in their path and fly over water. They can destroy breakables just like bullets and bears do. They deal 10 damage to the player.

Stars cycle between the characters |, /, -, and \, and cycle through the seven default ZZT colors.

Statless stars do not actively cycle their character or color, but only do so when the board tile is forced to refresh. This can include when a message is displayed at the bottom of the screen, when a text window disappears, or when a torch reveals new squares in a dark room. Moreover, because stars only update their color in their drawing procedure (and not their tick procedure), they can be used to detect whether or not a board is dark.

Internally the character for a star is the letter "S". However, since stars are not placeable in the built-in editor and their draw procedure only uses other characters, this has no bearing on the game.