Methods
onFrame(event)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
event |
GameEvent | @param {Cell} cell @param {number} frame |
BubblingLava — animated lava that cycles through 8 symbols, then moves to an adjacent Lava cell (mirroring the Java implementation).
Java: cycles every 4 ticks, full period = 36 (8 symbols + 1 move tick). At t=8 (frame%36===32) it swaps cells with an adjacent lava cell twice to "flow" in a random direction.
| Name | Type | Description |
|---|---|---|
event |
GameEvent | @param {Cell} cell @param {number} frame |