Preparing search index...
The search index is not available
TypeSpriteJS Game Engine - API
TypeSpriteJS Game Engine - API
Emitter
Class Emitter
Hierarchy
Emitter
Index
Constructors
constructor
Properties
_emitter
Modifer
_factory
_generator
_initer
_modifier
_particles
_running
_started
last
Position
position
Methods
add
Emitter
Modifier
add
Initer
add
Modifier
blast
create
Particle
destroy
Particle
get
Emitter
Modifier
get
Generator
get
Initer
get
Initer
Of
Type
get
Modifiers
on
Blast
on
Init
Particle
pause
remove
Initer
Of
Type
remove
Particles
resume
start
update
On
Frame
Constructors
constructor
new
Emitter
(
generator
:
Generator
, factory
:
ParticleFactory
)
:
Emitter
Parameters
generator:
Generator
factory:
ParticleFactory
Returns
Emitter
Properties
Private
_emitter
Modifer
_emitter
Modifer
:
EmitterModifier
[]
= []
Private
_factory
_factory
:
ParticleFactory
Private
_generator
_generator
:
Generator
Private
_initer
_initer
:
Initer
[]
= []
Private
_modifier
_modifier
:
Modifier
[]
= []
_particles
_particles
:
Particle
[]
= []
Private
_running
_running
:
boolean
= true
Private
_started
_started
:
boolean
= false
last
Position
last
Position
:
{
x
:
number
;
y
:
number
;
}
= ...
Type declaration
x
:
number
y
:
number
position
position
:
{
x
:
number
;
y
:
number
;
}
= ...
Type declaration
x
:
number
y
:
number
Methods
add
Emitter
Modifier
add
Emitter
Modifier
(
emod
:
EmitterModifier
)
:
Emitter
Parameters
emod:
EmitterModifier
Returns
Emitter
add
Initer
add
Initer
(
ini
:
Initer
)
:
Emitter
Parameters
ini:
Initer
Returns
Emitter
add
Modifier
add
Modifier
(
mod
:
Modifier
)
:
Emitter
Parameters
mod:
Modifier
Returns
Emitter
blast
blast
(
)
:
void
Returns
void
Private
create
Particle
create
Particle
(
)
:
void
Returns
void
Private
destroy
Particle
destroy
Particle
(
p
:
any
)
:
void
Parameters
p:
any
Returns
void
get
Emitter
Modifier
get
Emitter
Modifier
(
)
:
EmitterModifier
[]
Returns
EmitterModifier
[]
get
Generator
get
Generator
(
)
:
Generator
Returns
Generator
get
Initer
get
Initer
(
)
:
Initer
[]
Returns
Initer
[]
get
Initer
Of
Type
get
Initer
Of
Type
(
refType
:
any
)
:
Initer
Parameters
refType:
any
Returns
Initer
get
Modifiers
get
Modifiers
(
)
:
Modifier
[]
Returns
Modifier
[]
on
Blast
on
Blast
(
count
:
number
)
:
void
Parameters
count:
number
Returns
void
on
Init
Particle
on
Init
Particle
(
p
:
Particle
)
:
void
Parameters
p:
Particle
Returns
void
pause
pause
(
)
:
void
Returns
void
remove
Initer
Of
Type
remove
Initer
Of
Type
(
refType
:
any
)
:
Initer
Parameters
refType:
any
Returns
Initer
remove
Particles
remove
Particles
(
)
:
void
Returns
void
resume
resume
(
)
:
void
Returns
void
start
start
(
)
:
void
Returns
void
update
On
Frame
update
On
Frame
(
elapsed
:
number
, stats
:
ParticleStats
)
:
void
Parameters
elapsed:
number
stats:
ParticleStats
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
Type
SpriteJS
Game
Engine -
API
Emitter
constructor
_emitter
Modifer
_factory
_generator
_initer
_modifier
_particles
_running
_started
last
Position
position
add
Emitter
Modifier
add
Initer
add
Modifier
blast
create
Particle
destroy
Particle
get
Emitter
Modifier
get
Generator
get
Initer
get
Initer
Of
Type
get
Modifiers
on
Blast
on
Init
Particle
pause
remove
Initer
Of
Type
remove
Particles
resume
start
update
On
Frame
Generated using
TypeDoc