Lit Bomb
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 until the internal Fuse length value overflows back to zero (carrying into parameter bits 4-7, which potentially changes the Strength), using ID animation positions #177-#184 (Energizer colors 2-8 and Explosion Stage 1 color) for its character.