Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
KilledByAPixel committed Aug 5, 2024
1 parent 386618f commit aa2c0b3
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 38 deletions.
24 changes: 12 additions & 12 deletions dist/littlejs.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4139,16 +4139,17 @@ class ParticleEmitter extends EngineObject

// build particle
const particle = new Particle(pos, this.tileInfo, angle, colorStart, colorEnd, particleTime, sizeStart, sizeEnd, this.fadeRate, this.additive, this.trailScale, this.localSpace && this, this.particleDestroyCallback);
particle.velocity = vec2().setAngle(velocityAngle, speed);
particle.fadeRate = this.fadeRate;
particle.damping = this.damping;
particle.angleDamping = this.angleDamping;
particle.elasticity = this.elasticity;
particle.friction = this.friction;
particle.gravityScale = this.gravityScale;
particle.collideTiles = this.collideTiles;
particle.renderOrder = this.renderOrder;
particle.mirror = !!randInt(2);
particle.velocity = vec2().setAngle(velocityAngle, speed);
particle.angleVelocity = angleSpeed;
particle.fadeRate = this.fadeRate;
particle.damping = this.damping;
particle.angleDamping = this.angleDamping;
particle.elasticity = this.elasticity;
particle.friction = this.friction;
particle.gravityScale = this.gravityScale;
particle.collideTiles = this.collideTiles;
particle.renderOrder = this.renderOrder;
particle.mirror = !!randInt(2);

// call particle create callaback
this.particleCreateCallback && this.particleCreateCallback(particle);
Expand Down Expand Up @@ -4831,7 +4832,7 @@ function glDraw(x, y, sizeX, sizeY, angle, uv0X, uv0Y, uv1X, uv1Y, rgba, rgbaAdd
///////////////////////////////////////////////////////////////////////////////
// post processing - can be enabled to pass other canvases through a final shader

let glPostShader, glPostArrayBuffer, glPostTexture, glPostIncludeOverlay;
let glPostShader, glPostTexture, glPostIncludeOverlay;

/** Set up a post processing shader
* @param {String} shaderCode
Expand Down Expand Up @@ -4867,7 +4868,6 @@ function glInitPostProcess(shaderCode, includeOverlay=false)
);

// create buffer and texture
glPostArrayBuffer = glContext.createBuffer();
glPostTexture = glCreateTexture(undefined);
glPostIncludeOverlay = includeOverlay;

Expand Down
2 changes: 1 addition & 1 deletion dist/littlejs.esm.min.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dist/littlejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4139,16 +4139,17 @@ class ParticleEmitter extends EngineObject

// build particle
const particle = new Particle(pos, this.tileInfo, angle, colorStart, colorEnd, particleTime, sizeStart, sizeEnd, this.fadeRate, this.additive, this.trailScale, this.localSpace && this, this.particleDestroyCallback);
particle.velocity = vec2().setAngle(velocityAngle, speed);
particle.fadeRate = this.fadeRate;
particle.damping = this.damping;
particle.angleDamping = this.angleDamping;
particle.elasticity = this.elasticity;
particle.friction = this.friction;
particle.gravityScale = this.gravityScale;
particle.collideTiles = this.collideTiles;
particle.renderOrder = this.renderOrder;
particle.mirror = !!randInt(2);
particle.velocity = vec2().setAngle(velocityAngle, speed);
particle.angleVelocity = angleSpeed;
particle.fadeRate = this.fadeRate;
particle.damping = this.damping;
particle.angleDamping = this.angleDamping;
particle.elasticity = this.elasticity;
particle.friction = this.friction;
particle.gravityScale = this.gravityScale;
particle.collideTiles = this.collideTiles;
particle.renderOrder = this.renderOrder;
particle.mirror = !!randInt(2);

// call particle create callaback
this.particleCreateCallback && this.particleCreateCallback(particle);
Expand Down Expand Up @@ -4831,7 +4832,7 @@ function glDraw(x, y, sizeX, sizeY, angle, uv0X, uv0Y, uv1X, uv1Y, rgba, rgbaAdd
///////////////////////////////////////////////////////////////////////////////
// post processing - can be enabled to pass other canvases through a final shader

let glPostShader, glPostArrayBuffer, glPostTexture, glPostIncludeOverlay;
let glPostShader, glPostTexture, glPostIncludeOverlay;

/** Set up a post processing shader
* @param {String} shaderCode
Expand Down Expand Up @@ -4867,7 +4868,6 @@ function glInitPostProcess(shaderCode, includeOverlay=false)
);

// create buffer and texture
glPostArrayBuffer = glContext.createBuffer();
glPostTexture = glCreateTexture(undefined);
glPostIncludeOverlay = includeOverlay;

Expand Down
2 changes: 1 addition & 1 deletion dist/littlejs.min.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions dist/littlejs.release.js
Original file line number Diff line number Diff line change
Expand Up @@ -3757,16 +3757,17 @@ class ParticleEmitter extends EngineObject

// build particle
const particle = new Particle(pos, this.tileInfo, angle, colorStart, colorEnd, particleTime, sizeStart, sizeEnd, this.fadeRate, this.additive, this.trailScale, this.localSpace && this, this.particleDestroyCallback);
particle.velocity = vec2().setAngle(velocityAngle, speed);
particle.fadeRate = this.fadeRate;
particle.damping = this.damping;
particle.angleDamping = this.angleDamping;
particle.elasticity = this.elasticity;
particle.friction = this.friction;
particle.gravityScale = this.gravityScale;
particle.collideTiles = this.collideTiles;
particle.renderOrder = this.renderOrder;
particle.mirror = !!randInt(2);
particle.velocity = vec2().setAngle(velocityAngle, speed);
particle.angleVelocity = angleSpeed;
particle.fadeRate = this.fadeRate;
particle.damping = this.damping;
particle.angleDamping = this.angleDamping;
particle.elasticity = this.elasticity;
particle.friction = this.friction;
particle.gravityScale = this.gravityScale;
particle.collideTiles = this.collideTiles;
particle.renderOrder = this.renderOrder;
particle.mirror = !!randInt(2);

// call particle create callaback
this.particleCreateCallback && this.particleCreateCallback(particle);
Expand Down Expand Up @@ -4449,7 +4450,7 @@ function glDraw(x, y, sizeX, sizeY, angle, uv0X, uv0Y, uv1X, uv1Y, rgba, rgbaAdd
///////////////////////////////////////////////////////////////////////////////
// post processing - can be enabled to pass other canvases through a final shader

let glPostShader, glPostArrayBuffer, glPostTexture, glPostIncludeOverlay;
let glPostShader, glPostTexture, glPostIncludeOverlay;

/** Set up a post processing shader
* @param {String} shaderCode
Expand Down Expand Up @@ -4485,7 +4486,6 @@ function glInitPostProcess(shaderCode, includeOverlay=false)
);

// create buffer and texture
glPostArrayBuffer = glContext.createBuffer();
glPostTexture = glCreateTexture(undefined);
glPostIncludeOverlay = includeOverlay;

Expand Down

0 comments on commit aa2c0b3

Please sign in to comment.