> For the complete documentation index, see [llms.txt](https://doc.lucky-cycle.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.lucky-cycle.com/games/index/explosion.md).

# Explosion

1. [#configuration](#configuration "mention")
2. [#options](#options "mention")
3. [#assets](#assets "mention")

### Configuration

<details>

<summary>JSON</summary>

<pre class="language-json"><code class="lang-json">{
<strong>  "type": "",
</strong>  "particule_image": GAME_URL + "/particles.png",
  "particule_width": 50,
  "particule_height": 50,
  "particule_amount": 100,
  "explode_on_win": true,
  "explode_on_lose": false,
  "explode_fullscreen": true
}
</code></pre>

</details>

### Options

<table><thead><tr><th>Key</th><th>Type</th><th>Explanation</th><th>Default</th></tr></thead><tbody><tr><td><pre><code><strong>type
</strong></code></pre></td><td>String</td><td>Explosion type.</td><td>/</td></tr><tr><td><pre><code>particule_width
</code></pre></td><td>Integer</td><td>Width of one explosion item.</td><td>50</td></tr><tr><td><pre><code>particule_height
</code></pre></td><td>Integer</td><td>Height of one explosion item.</td><td>50</td></tr><tr><td><pre><code>particule_amount
</code></pre></td><td>Integer</td><td>Number of items to render in the animation.</td><td>100</td></tr><tr><td><pre><code>explode_on_win
</code></pre></td><td>Boolean</td><td>Should the explosion be triggered on <em><mark style="color:yellow;">win</mark></em>.</td><td>true</td></tr><tr><td><pre><code>explode_on_lose
</code></pre></td><td>Boolean</td><td>Should the explosion be triggered on <em><mark style="color:yellow;">lose</mark></em>.</td><td>false</td></tr><tr><td><pre><code>explode_fullscreen
</code></pre></td><td>Boolean</td><td>Should the explosion be fullscreen <em>(true)</em> or fit the game zone <em>(false)</em>.</td><td>true</td></tr></tbody></table>

### Assets

<table><thead><tr><th>Key</th><th>Size</th><th>Explanation</th><th>Default</th></tr></thead><tbody><tr><td><pre><code>particule_image
</code></pre></td><td>300 x 50px</td><td>Sprite used in the animation <mark style="color:red;">(6 particles of 50 x 50px each)</mark>.</td><td><a href="https://statics.lucky-cycle.com/files/_games/explosion/particles.png">/particles.png</a></td></tr></tbody></table>
