new BHell_Bomb_Wind()
Wind bomb class. Creates a whirlwind of bullets around the player. Lasts 5 seconds.
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. For 5 seconds (300 frames) creates four bullets each frame.
- Overrides:
- Source:
updateCharacterFrame()
Updates the charset frame, calculating the correct offsets.
- Inherited From:
- Source: