Transporter

From Wiki of ZZT
Revision as of 06:48, 23 December 2025 by RT-55J (talk | contribs) (Created page with "{{Stub}} {{Element |zzt-oop name=Transporter |id={{Byte|30}} |char={{CharSwatch|197}} |category=Terrain |stats=yes |x-y step=Direction |cycle=2 |destructible=No |effect on movement=Transportation or Wall |uses zzt-oop color=Yes }} The '''transporter''' is device that moves the player or a pushable element to another location. TODO: Describe how transporters function. == Draw Procedure == For standardly oriented transporters, the transporters cycle through the follow...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The king in yellow...
This page is a stub!
Somebody recolor the walls!
Transporter
ZZT-OOP nameTransporter
Internal ID30 (0x1E)
Character#char 197 (0xC5)
CategoryTerrain
Stats
X/Y-stepDirection
Default cycle2
Other traits
Effect on movementTransportation or Wall
Destructible?No
Uses ZZT-OOP color names?Yes

The transporter is device that moves the player or a pushable element to another location.

TODO: Describe how transporters function.

Draw Procedure

For standardly oriented transporters, the transporters cycle through the following frames of animation depending on their direction:

Animation frames
Frame N S E W
1 #char 94 ^ (0x5E) #char 118 v (0x76) #char 40 ( (0x28) #char 41 ) (0x29)
2 #char 126 ~ (0x7E) #char 95 _ (0x5F) #char 60 < (0x3C) #char 62 > (0x3E)
3 #char 94 ^ (0x5E) #char 118 v (0x76) #char 40 ( (0x28) #char 41 ) (0x29)
4 #char 45 - (0x2D) #char 45 - (0x2D) #char 179 (0xB3) #char 179 (0xB3)

The animation rate is controlled by the code (CurrentTick div Cycle) mod 4. Be aware that a cycle 0 transporter will crash the game due to a division-by-zero error if the transporter is drawn on-screen. This can be used as a particularly cruel form of anti-cheat in dark rooms if you can guarantee the transporter is always outside the torch-viewable area.

When using non-standard x/y-step values, transporters may use characters outside of the array bounds.