> For the complete documentation index, see [llms.txt](https://rhythm-engine.gitbook.io/rhythm-engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rhythm-engine.gitbook.io/rhythm-engine/samples/looping-explosions-sample.md).

# Looping Explosions Sample

<figure><img src="/files/MIRear53o3rgC9CzkKbO" alt=""><figcaption><p>Looping Explosions Scene</p></figcaption></figure>

ExplosionBombPlacer.cs is a pretty simple script that just spawns a prefab on the mouse position instantly.&#x20;

<figure><img src="/files/3esJu0CjdfWNTzcqt202" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/FkXZCma4tBdfjthUSPIN" alt="" width="469"><figcaption></figcaption></figure>

ExplosionBomb.cs calls `BeatSequencer.CallOnNextInstrumentStep()` to explode the bomb prefab on the next snare hit and spawn a particle system.

<figure><img src="/files/ue6L9zcEOHY93OukwuXk" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/XZh6P7bbaWkrJ0XVDLFL" alt="" width="464"><figcaption></figcaption></figure>
