Explosion

Configuration

JSON
{
  "particule_image": GAME_URL + "/assets/explosion/particles.png",
  "particule_width": 50,
  "particule_height": 50,
  "particule_amount": 100,
  "explode_on_win": true,
  "explode_on_lose": false,
  "explode_fullscreen": true
}

Options

Key
Type
Explanation
Default

Integer

Width of one explosion item.

50

Integer

Height of one explosion item.

50

Integer

Number of items to render in the animation.

100

Boolean

Should the explosion be triggered on win.

true

Boolean

Should the explosion be triggered on lose.

false

Boolean

Should the explosion be fullscreen (true) or fit the game zone (false).

true

Assets

Key
Size
Explanation
Default

300 x 50px

Sprite used in the animation (6 particles of 50 x 50px each).

Last updated