Web: Difference between revisions
Jump to navigation
Jump to search
(Redirected page to Terrain#Web) Tag: New redirect |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
# | {{ID | ||
|name = Web | |||
|id = 18 | |||
|robotic = Web | |||
|color = 7 | |||
|param = none | |||
|idchar = 0 | |||
|idanim_chars = Thin lines (#128-#143) | |||
|floor = y | |||
|break_bombed = y | |||
}} | |||
[[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. | |||
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) | |||
== ZZT connection == | |||
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)