Lit Bomb: Difference between revisions
m (→Behavior) |
m (→Unintended behavior: correct out-of-bounds behavior.) |
||
| Line 37: | Line 37: | ||
* '''7''': the Lit Bomb will detonate as intended, but may briefly display using a character derived from ID animation index #176 (Energizer color 1). | * '''7''': the Lit Bomb will detonate as intended, but may briefly display using a character derived from ID animation index #176 (Energizer color 1). | ||
* '''8-15''': the Lit Bomb will animate | * '''8-15''': the Lit Bomb will animate using ID animation positions #177-#184 (Energizer colors 2-8, Explosion Stage 1 color). When the internal '''Fuse length''' value starts the cycle at 14 or 15, it will detonate. | ||
== ZZT connection == | == ZZT connection == | ||
In [[ZZT]], the equivalent element to Lit Bomb is [[zzt:Bomb]]. | In [[ZZT]], the equivalent element to Lit Bomb is [[zzt:Bomb]]. | ||
Revision as of 05:39, 31 May 2025
A Lit Bomb is a MegaZeux built-in element. A Lit Bomb has a fuse that shortens every cycle until the Lit Bomb finally explodes.
Lit Bombs are created either when the Player lays a bomb, a Robot lays a bomb, or when the Player touches a Bomb when the board setting Collect bombs is disabled. They can also be placed directly in the editor.
Behavior
The Fuse length of a Lit Bomb will shorten every cycle (parameter increases by 1). Once the Fuse length reaches 0 (lower nibble of parameter is 6 at the start of the cycle), the Lit Bomb will explode, playing SFX 36 (Explosion) and leaving an Explosion of radius 2 (if Strength is low) or of radius 4 (if Strength is high).
The display character of a Lit Bomb is derived from (parameter MODULO 16) + 169, which references the Lit Bomb animations section of the ID animations (#169-#175).
Parameter
pXX → x yyy zzzz
| ||| ++++- Fuse length: 0-6 = 7 through 1,
| ||| 7-15 = undefined
| +++------ Unused
|
+---------- Strength: 0 = low strength,
1 = high strength
Unintended behavior
If the internal Fuse length value is greater than or equal to 7, some unintended effects will occur:
- 7: the Lit Bomb will detonate as intended, but may briefly display using a character derived from ID animation index #176 (Energizer color 1).
- 8-15: the Lit Bomb will animate using ID animation positions #177-#184 (Energizer colors 2-8, Explosion Stage 1 color). When the internal Fuse length value starts the cycle at 14 or 15, it will detonate.