var Emitter = function(x, y, settings) {
/* the emitter's position */
this.pos = {
x: x,
y: y
};
/* set specified values */
this.settings = settings;
/* How often the emitter needs to create a particle in milliseconds */
this.emission_delay = 1000 / settings.emission_rate;
/* we'll get to these later */
this.last_update = 0;
this.last_emission = 0;
/* the emitter's particle objects */
this.particles = [];
/* particle position settings */
this.position_vary = this.settings.position_range || false;
this.min_position = this.settings.min_position || {x: 0, y: 0};
};
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
