Star: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
(Is that 255 ticks or should it be 256 ticks? idk, but I almost feel guilty for finding a way to make stars ''worse'')
 
m (:))
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
The '''star''' is an enemy projectile that [[seek|seeks]] after the player, is indestructible, and disappears after 100 ticks. Stars can be generated by [[tiger|tigers]] and [[spinning gun|spinning guns]], and also by [[object|objects]] using the [[throwstar|#throwstar]] command or the [[put|#put]] command (which generates stars that last for ''255'' ticks).
The '''star''' is an enemy projectile that [[seek|seeks]] after the player, is indestructible, and disappears after 100 ticks. Stars can be generated by [[tiger|tigers]] and [[spinning gun|spinning guns]], and also by [[object|objects]] using the [[throwstar|#throwstar]] command or the [[put|#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 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 <code>|</code>, <code>/</code>, <code>-</code>, and <code>\</code>, and cycle through the seven default ZZT colors.
Stars cycle between the characters <code>|</code>, <code>/</code>, <code>-</code>, and <code>\</code>, and cycle through the seven default ZZT colors.
Line 20: Line 20:
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.
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.
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 uses other characters, this has no bearing on the actual game.


{{ElementsNavbox}}
{{ElementsNavbox}}

Latest revision as of 07:50, 13 February 2021

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 uses other characters, this has no bearing on the actual game.