Web: Difference between revisions
Jump to navigation
Jump to search
(Removed redirect to Terrain#Web) Tag: Removed redirect |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
[[Category:MegaZeux]] [[Category:MegaZeux built-in objects]] [[Category:Terrains]] | [[Category:MegaZeux]] [[Category:MegaZeux built-in objects]] [[Category:Terrains]] | ||
[[Web]] (ID 18, <code>Web</code>) is a [[built-in]] [[terrain]]. It is generic floor type with the default color 7, uses the configured [[thin lines]] ID chars (128-143) to determine its display character based on its surroundings. It is similar to [[Thick Web]], which uses [[thick lines]] instead. | |||
If the board option [[Fire burns fakes]] is enabled, [[Fire]] can spread onto any Web. | If the board option [[Fire burns fakes]] is enabled, [[Fire]] can spread onto any Web. | ||
Line 18: | Line 18: | ||
A [[Spider]] can be configured to move exclusively on different Web types. | A [[Spider]] can be configured to move exclusively on different Web types. | ||
=== ZZT connection | == Behavior == | ||
The display character of a Web is derived from the IDs in the four positions immediately surrounding it: | |||
offset = 0 | |||
if board edge or anything but Space to the north: | |||
offset += 1 | |||
if board edge or anything but Space to the south: | |||
offset += 2 | |||
if board edge or anything but Space to the east: | |||
offset += 4 | |||
if board edge or anything but Space to the west: | |||
offset += 8 | |||
char = offset + thin lines ID chars animation start (128) | |||
== ZZT connection == | |||
In [[Super ZZT]], the equivalent element to Web is [[zzt:Web]]. | In [[Super ZZT]], the equivalent element to Web is [[zzt:Web]]. |
Latest revision as of 06:47, 13 June 2025
Web # 18 ![]() | |
Robotic name | Web
|
Default color | 7 |
Default param | none |
ID char | 0 (#18) |
ID anim. chars | Thin lines (#128-#143) |
Attributes | Floor Break when bombed |
Web (ID 18, Web
) is a built-in terrain. It is generic floor type with the default color 7, uses the configured thin lines ID chars (128-143) to determine its display character based on its surroundings. It is similar to Thick Web, which uses thick lines instead.
If the board option Fire burns fakes is enabled, Fire can spread onto any Web.
A Spider can be configured to move exclusively on different Web types.
Behavior
The display character of a Web is derived from the IDs in the four positions immediately surrounding it:
offset = 0 if board edge or anything but Space to the north: offset += 1 if board edge or anything but Space to the south: offset += 2 if board edge or anything but Space to the east: offset += 4 if board edge or anything but Space to the west: offset += 8 char = offset + thin lines ID chars animation start (128)