Transporter
Jump to navigation
Jump to search
| This page is a stub! Somebody recolor the walls! |
| Transporter | |
|---|---|
| ZZT-OOP name | Transporter |
| Internal ID | 30 (0x1E) |
| Character | #char 197 ┼ (0xC5) |
| Category | Terrain |
| Stats | |
| X/Y-step | Direction |
| Default cycle | 2 |
| Other traits | |
| Effect on movement | Transportation 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:
| 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.
| Elements | |
|---|---|
| Special | |
| Items | |
| Terrain | |
| Creatures | |
| Text | |
