1 /** 2 * @class particleEmitter2D 3 * @extends entity 4 * @description 5 * 6 * Particle emitters are a means of producing particle effects 7 * that are both more efficiently rendered and rendered with relatively 8 * few configurations. By importing a particle specification file to 9 * define a particle ({@link sandboxe.assets.load}), you can instantiate 10 * a pseudorandomixed effect with a single call. 11 * 12 */ 13 function particleEmitter2D() { 14 15 16 /** 17 * Instantiates a particle in 2D space based on a stored design. 18 * 19 * @param {asset} p The name of the particle design to emit. If p does 20 * not refer to a stored particle, then no particle is emitted 21 * and the reference returned is invalid. 22 * @param {Number} count number of these particles to emit. 23 */ 24 this.emitParticle = function(p, count){}; 25 26 /** 27 * Enable texture filtering for each particle emitted. 28 * It is enabled by default. 29 * @type {Boolean} 30 */ 31 this.filtered = false; 32 33 34 /** 35 * Enable translucency for each each particle drawn. 36 * It is enabled by default. 37 * @type {Boolean} 38 */ 39 this.translucent = false; 40 41 42 return this; 43 }