Class: BHell_Bomb_Ice

BHell.BHell_Bomb_Ice()

new BHell_Bomb_Ice()

Ice bomb class. Creates a 25 pointed star of bullets centered at the activation point. Lasts 5 seconds.

Source:

Extends

Methods

activate(x, y)

Activates a bomb. Makes every enemy bullet on screen explode.

Parameters:
Name Type Description
x

X activation coordinate.

y

Y activaton coordinate.

Inherited From:
Source:

deactivate()

Deactivates the bomb.

Inherited From:
Source:

initialize(parent, params, bulletList)

Constructor.

Parameters:

  • sprite: The bullets' charset file,
  • index: The bullets' charset index,
  • direction: The bullets' charset direction,
  • frame: The bullets' charset frame,
  • icon: The bomb's iconset,
  • icon_index: The bomb's icon index,
  • se: The sound effect to be played when launching a bomb.
Parameters:
Name Type Description
parent

Container for the derived classes' effects.

params

Bomb parameters.

bulletList

Array in which the spawned bullets will be stored.

Overrides:
Source:

isActive() → {boolean}

Checks if a bomb is currently active.

Inherited From:
Source:
Returns:

True if a bomb is active.

Type
boolean

update()

Updates the bomb. Creates 25 bullets radially every 5 frames.

Overrides:
Source:

updateCharacterFrame()

Updates the charset frame, calculating the correct offsets.

Inherited From:
Source: