Class: BHell_Emitter_Burst

BHell.BHell_Emitter_Burst()

new BHell_Emitter_Burst()

Burst emitter. Creates many bullets packed randomly inside a dispersion circle.

Source:

Extends

Methods

initialize(x, y, params, parent, bulletList)

Constructor. Additional parameters:

  • angle: Angle at which the bullets will be shot,
  • shots: Number of bullets which will be shot,
  • dispersion: Diameter of the dispersion circle,
  • aim: If true the shooting angle is determined like Emitter_Angle with aim = true,
  • always_aim: if false (and aim = true) aiming only occours when there is a raising edge (shoot(false) -> shoot(true)),
  • aim_x aiming horizontal offset (used only if aim = true),
  • aim_y: aiming vertical offset (used only if aim = true).
Parameters:
Name Type Description
x
y
params
parent
bulletList
Overrides:
Source:

move(x, y)

Moves the emitter, relative to the initialised offset.

Parameters:
Name Type Description
x

New x coordinate.

y

New y coordinate.

Inherited From:
Source:

shoot()

Creates this.shots bullets randomly inside a circle with this.dispersion diameter.

Overrides:
Source:

update()

Updates the emitter's sprite and state. Called every frame. Shoots if in shooting state.

Inherited From:
Source:

updateCharacterFrame()

Updates the charset frame, calculating the correct offsets.

Inherited From:
Source: