Lit Bomb: Difference between revisions
(Created page with "{{ID |name = Lit Bomb |id = 37 |robotic = LitBomb |color = 8 |param = <code>p80</code> (select)<br>'''Strength''': high<br>'''Fuse length''': 7 |idchar = 0 |idanim_chars = Lit Bomb anim<br>(#169-#175) |active = y |pushable = all |explode_bombed = y }} Category:MegaZeux Category:MegaZeux built-in objects Category:Elements A Lit Bomb is a MegaZeux built-in element. A Lit Bomb has a fuse that shortens every cycle until the Lit Bomb fina...") |
m (→Behavior) |
||
Line 19: | Line 19: | ||
== Behavior == | == 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, leaving an [[Explosion]] of radius 2 (if '''Strength''' is low) or of radius 4 (if '''Strength''' is high). | 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 <code>(parameter MODULO 16) + 169</code>, which references the Lit Bomb animations section of the ID animations (#169-#175). | The display character of a Lit Bomb is derived from <code>(parameter MODULO 16) + 169</code>, which references the Lit Bomb animations section of the ID animations (#169-#175). |
Revision as of 03:33, 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 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.