Constructor
new ParticleSystemSprite(initialopt, maxopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
initial |
number |
<optional> |
1
|
Number of particles to start with. |
max |
number |
<optional> |
100
|
Maximum number of particles. param {number} [increment=5] Maximum number of particles. |
Extends
Classes
Members
frameIncrease :number
- Source:
- Default Value:
- 1
Type:
- number
initial :number
- Source:
- Default Value:
- 1
Type:
- number
max :number
- Source:
- Default Value:
- 1
Type:
- number
Methods
(protected) behavior(p, dt)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
p |
Particle | |
dt |
number |
(protected) create()
- Description:
- override this to return an object created from your own class extending the particle class
- Source:
init(entity)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
entity |
Entity |
(protected) initParticles(n)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
n |
number |
render(ctx, dt)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
ctx |
CanvasRenderingContext2D | |
dt |
number |