new BHell_Bomb_Base()
Bomb base class. It simply deletes every enemy bullet on screen.
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. |
deactivate()
Deactivates the bomb.
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.
Returns:
True if a bomb is active.
- Type
- boolean
update()
Updates the bomb. After one second it automatically deactivates it.
- Overrides:
- Source:
updateCharacterFrame()
Updates the charset frame, calculating the correct offsets.
- Inherited From:
- Source: