Thick Web

From MZXWiki
(Redirected from Thickweb)
Jump to navigation Jump to search
Thick Web # 19 Id19.png
Robotic name ThickWeb
Default color 7
Default param none
ID char 0 (#19)
ID anim. chars Thick lines (#144-#159)
Attributes Floor
Break when bombed

Thick Web (ID 19, ThickWeb) is a built-in terrain. It is a generic floor type with the default color 7 and uses the configured thick lines ID chars (144-159) to determine its display character based on its surroundings. It is similar to Web, which uses thin lines instead.

If the board option Fire burns fakes is enabled, Fire can spread onto any Thick Web.

Spiders can be configured to move exclusively on Web types.

Behavior

The display character of a Thick 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 + thick lines ID chars animation start (144)

ZZT connection

In Super ZZT, the equivalent element to Thick Web is zzt:Web, but ZZT Web uses thin lines instead of thick lines.