Class: BHell_Bomb_Water

BHell.BHell_Bomb_Water()

new BHell_Bomb_Water()

Water bomb class. Creates 5 concentric rings 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 360 bullets travelling radially from the spawn point every second (60 frames).

Overrides:
Source:

updateCharacterFrame()

Updates the charset frame, calculating the correct offsets.

Inherited From:
Source: