littlejsengine 1.8.8 → 1.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,13 +24,13 @@
24
24
  class ParticleEmitter extends EngineObject
25
25
  {
26
26
  /** Create a particle system with the given settings
27
- * @param {Vector2} position - World space position of the emitter
28
- * @param {Number} [angle=0] - Angle to emit the particles
29
- * @param {Number} [emitSize=0] - World space size of the emitter (float for circle diameter, vec2 for rect)
30
- * @param {Number} [emitTime=0] - How long to stay alive (0 is forever)
31
- * @param {Number} [emitRate=100] - How many particles per second to spawn, does not emit if 0
27
+ * @param {Vector2} position - World space position of the emitter
28
+ * @param {Number} [angle=0] - Angle to emit the particles
29
+ * @param {Number|Vector2} [emitSize=0] - World space size of the emitter (float for circle diameter, vec2 for rect)
30
+ * @param {Number} [emitTime=0] - How long to stay alive (0 is forever)
31
+ * @param {Number} [emitRate=100] - How many particles per second to spawn, does not emit if 0
32
32
  * @param {Number} [emitConeAngle=PI] - Local angle to apply velocity to particles from emitter
33
- * @param {TileInfo} [tileInfo] - Tile info to render particles (undefined is untextured)
33
+ * @param {TileInfo} [tileInfo] - Tile info to render particles (undefined is untextured)
34
34
  * @param {Color} [colorStartA=Color()] - Color at start of life 1, randomized between start colors
35
35
  * @param {Color} [colorStartB=Color()] - Color at start of life 2, randomized between start colors
36
36
  * @param {Color} [colorEndA=Color(1,1,1,0)] - Color at end of life 1, randomized between end colors
@@ -86,7 +86,7 @@ class ParticleEmitter extends EngineObject
86
86
  super(pos, vec2(), tileInfo, angle, undefined, renderOrder);
87
87
 
88
88
  // emitter settings
89
- /** @property {Number} - World space size of the emitter (float for circle diameter, vec2 for rect) */
89
+ /** @property {Number|Vector2} - World space size of the emitter (float for circle diameter, vec2 for rect) */
90
90
  this.emitSize = emitSize
91
91
  /** @property {Number} - How long to stay alive (0 is forever) */
92
92
  this.emitTime = emitTime;