float emissionTime = emission + emissionDiff * emissionValue.getScale(durationTimer / (float)duration); if (emissionTime > 0) { emissionTime = 1000 / emissionTime;
float emissionTime = emission + emissionDiff * emissionValue.getScale(durationTimer / (float)duration); if (emissionTime > 0) { emissionTime = 1000 / emissionTime;
float emissionTime = emission + emissionDiff * emissionValue.getScale(durationTimer / (float)duration); if (emissionTime > 0) { emissionTime = 1000 / emissionTime;
float angle = 0; if ((updateFlags & UPDATE_ANGLE) == 0) { angle = particle.angle + particle.angleDiff * angleValue.getScale(0); particle.angle = angle; particle.angleCos = MathUtils.cosDeg(angle); particle.yScaleDiff = yScaleValue.newHighValue() / spriteHeight; if (!yScaleValue.isRelative()) particle.yScaleDiff -= particle.yScale; particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(0), particle.yScale + particle.yScaleDiff * yScaleValue.getScale(0)); } else { particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(0)); particle.rotationDiff = rotationValue.newHighValue(); if (!rotationValue.isRelative()) particle.rotationDiff -= particle.rotation; float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(0); if (aligned) rotation += angle; particle.setRotation(rotation); switch (spawnShapeValue.shape) { case square: { float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); x += MathUtils.random(width) - width / 2; y += MathUtils.random(height) - height / 2; float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); float radiusX = width / 2;
particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(percent), particle.yScale + particle.yScaleDiff * yScaleValue.getScale(percent)); } else { particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(percent)); float velocity = (particle.velocity + particle.velocityDiff * velocityValue.getScale(percent)) * delta; float angle = particle.angle + particle.angleDiff * angleValue.getScale(percent); velocityX = velocity * MathUtils.cosDeg(angle); velocityY = velocity * MathUtils.sinDeg(angle); if ((updateFlags & UPDATE_ROTATION) != 0) { float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(percent); if (aligned) rotation += angle; particle.setRotation(rotation); velocityY = velocity * particle.angleSin; if (aligned || (updateFlags & UPDATE_ROTATION) != 0) { float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(percent); if (aligned) rotation += particle.angle; particle.setRotation(rotation); velocityX += (particle.wind + particle.windDiff * windValue.getScale(percent)) * delta; velocityY += (particle.gravity + particle.gravityDiff * gravityValue.getScale(percent)) * delta; particle.setRotation(particle.rotation + particle.rotationDiff * rotationValue.getScale(percent)); float a = particle.transparency + particle.transparencyDiff * transparencyValue.getScale(percent); particle.setColor(color[0] * a, color[1] * a, color[2] * a, a * alphaMultiplier);
float emissionTime = emission + emissionDiff * emissionValue.getScale(durationTimer / (float)duration); if (emissionTime > 0) { emissionTime = 1000 / emissionTime;
float emissionTime = emission + emissionDiff * emissionValue.getScale(durationTimer / (float)duration); if (emissionTime > 0) { emissionTime = 1000 / emissionTime;
float angle = 0; if ((updateFlags & UPDATE_ANGLE) == 0) { angle = particle.angle + particle.angleDiff * angleValue.getScale(0); particle.angle = angle; particle.angleCos = MathUtils.cosDeg(angle); particle.yScaleDiff = yScaleValue.newHighValue() / spriteHeight; if (!yScaleValue.isRelative()) particle.yScaleDiff -= particle.yScale; particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(0), particle.yScale + particle.yScaleDiff * yScaleValue.getScale(0)); } else { particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(0)); particle.rotationDiff = rotationValue.newHighValue(); if (!rotationValue.isRelative()) particle.rotationDiff -= particle.rotation; float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(0); if (aligned) rotation += angle; particle.setRotation(rotation); switch (spawnShapeValue.shape) { case square: { float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); x += MathUtils.random(width) - width / 2; y += MathUtils.random(height) - height / 2; float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); float radiusX = width / 2;
float angle = 0; if ((updateFlags & UPDATE_ANGLE) == 0) { angle = particle.angle + particle.angleDiff * angleValue.getScale(0); particle.angle = angle; particle.angleCos = MathUtils.cosDeg(angle); particle.yScaleDiff = yScaleValue.newHighValue() / spriteHeight; if (!yScaleValue.isRelative()) particle.yScaleDiff -= particle.yScale; particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(0), particle.yScale + particle.yScaleDiff * yScaleValue.getScale(0)); } else { particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(0)); particle.rotationDiff = rotationValue.newHighValue(); if (!rotationValue.isRelative()) particle.rotationDiff -= particle.rotation; float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(0); if (aligned) rotation += angle; particle.setRotation(rotation); switch (spawnShapeValue.shape) { case square: { float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); x += MathUtils.random(width) - width / 2; y += MathUtils.random(height) - height / 2; float width = spawnWidth + (spawnWidthDiff * spawnWidthValue.getScale(percent)); float height = spawnHeight + (spawnHeightDiff * spawnHeightValue.getScale(percent)); float radiusX = width / 2;
particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(percent), particle.yScale + particle.yScaleDiff * yScaleValue.getScale(percent)); } else { particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(percent)); float velocity = (particle.velocity + particle.velocityDiff * velocityValue.getScale(percent)) * delta; float angle = particle.angle + particle.angleDiff * angleValue.getScale(percent); velocityX = velocity * MathUtils.cosDeg(angle); velocityY = velocity * MathUtils.sinDeg(angle); if ((updateFlags & UPDATE_ROTATION) != 0) { float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(percent); if (aligned) rotation += angle; particle.setRotation(rotation); velocityY = velocity * particle.angleSin; if (aligned || (updateFlags & UPDATE_ROTATION) != 0) { float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(percent); if (aligned) rotation += particle.angle; particle.setRotation(rotation); velocityX += (particle.wind + particle.windDiff * windValue.getScale(percent)) * delta; velocityY += (particle.gravity + particle.gravityDiff * gravityValue.getScale(percent)) * delta; particle.setRotation(particle.rotation + particle.rotationDiff * rotationValue.getScale(percent)); float a = particle.transparency + particle.transparencyDiff * transparencyValue.getScale(percent); particle.setColor(color[0] * a, color[1] * a, color[2] * a, a * alphaMultiplier);
particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(percent), particle.yScale + particle.yScaleDiff * yScaleValue.getScale(percent)); } else { particle.setScale(particle.xScale + particle.xScaleDiff * xScaleValue.getScale(percent)); float velocity = (particle.velocity + particle.velocityDiff * velocityValue.getScale(percent)) * delta; float angle = particle.angle + particle.angleDiff * angleValue.getScale(percent); velocityX = velocity * MathUtils.cosDeg(angle); velocityY = velocity * MathUtils.sinDeg(angle); if ((updateFlags & UPDATE_ROTATION) != 0) { float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(percent); if (aligned) rotation += angle; particle.setRotation(rotation); velocityY = velocity * particle.angleSin; if (aligned || (updateFlags & UPDATE_ROTATION) != 0) { float rotation = particle.rotation + particle.rotationDiff * rotationValue.getScale(percent); if (aligned) rotation += particle.angle; particle.setRotation(rotation); velocityX += (particle.wind + particle.windDiff * windValue.getScale(percent)) * delta; velocityY += (particle.gravity + particle.gravityDiff * gravityValue.getScale(percent)) * delta; particle.setRotation(particle.rotation + particle.rotationDiff * rotationValue.getScale(percent)); float a = particle.transparency + particle.transparencyDiff * transparencyValue.getScale(percent); particle.setColor(color[0] * a, color[1] * a, color[2] * a, a * alphaMultiplier);
float emissionTime = emission + emissionDiff * emissionValue.getScale(durationTimer / (float)duration); if (emissionTime > 0) { emissionTime = 1000 / emissionTime;