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
particule_width

Integer

Width of one explosion item.

50

particule_height

Integer

Height of one explosion item.

50

particule_amount

Integer

Number of items to render in the animation.

100

explode_on_win

Boolean

Should the explosion be triggered on win.

true

explode_on_lose

Boolean

Should the explosion be triggered on lose.

false

explode_fullscreen

Boolean

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

true

Assets

Key
Size
Explanation
Default
particule_image

300 x 50px

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

Last updated