Class: BHell_Explosion

BHell.BHell_Explosion()

new BHell_Explosion()

Explosion class. It shows an animation moving vertically, then disappears.

Source:

Extends

Methods

destroy()

Removes the explosion from the screen and its container.

Source:

initialize(x, y, parent, explosionList)

Constructor. Creates the sprite and initialises the speed (which is handled by the controller) to 0.

Parameters:
Name Type Description
x

X coordinate.

y

Y coordinate.

parent

Container for the sprite.

explosionList

Array in which this explosion is contained.

Overrides:
Source:

update() → {boolean}

Updates the explosion's sprite and position. After 45 frames, it destroys it.

Overrides:
Source:
Returns:
Type
boolean

updateCharacterFrame()

Updates the charset frame, calculating the correct offsets.

Inherited From:
Source: