继承 ParticleSystem
Container View
模块 hilo/game/ParticleSystem
依赖
hilo/core/Hilo, hilo/core/Class, hilo/view/View, hilo/view/Container, hilo/view/Bitmap, hilo/view/Drawable, hilo/util/util
源码
ParticleSystem.js
粒子系统
| 属性 | 定义于 | |
|---|---|---|
|
emitNum:Number
每次发射数量
|
ParticleSystem | |
|
emitNumVar:Number
每次发射数量变化量
|
ParticleSystem | |
|
emitterX:Number
发射器位置x
|
ParticleSystem | |
|
emitterY:Number
发射器位置y
|
ParticleSystem | |
|
emitTime:Number
发射间隔
|
ParticleSystem | |
|
emitTimeVar:Number
发射间隔变化量
|
ParticleSystem | |
|
gx:Number
重力加速度x
|
ParticleSystem | |
|
gy:Number
重力加速度y
|
ParticleSystem | |
|
totalTime:Number
总时间
|
ParticleSystem |
| 方法 | 定义于 | |
|---|---|---|
|
ParticleSystem(properties:Object)
构造函数
|
ParticleSystem | |
|
onUpdate(dt:Number)
更新
|
ParticleSystem | |
|
reset(cfg:Object)
重置属性
|
ParticleSystem | |
|
start()
开始发射粒子
|
ParticleSystem | |
|
stop(clear:Boolean)
停止发射粒子
|
ParticleSystem |