diff --git a/src/ct.release/emitters.ts b/src/ct.release/emitters.ts index 67c4fcfd7..8f254c76e 100644 --- a/src/ct.release/emitters.ts +++ b/src/ct.release/emitters.ts @@ -9,6 +9,57 @@ declare var PIXI: typeof pixiMod & { particles: typeof particlesMod; }; +// TODO: remove this band-aid when https://github.com/pixijs/pixijs/issues/9495 closes +/// ⚠️⚠️⚠️ BAND-AID FOR https://github.com/pixijs/particle-emitter/issues/209 +PIXI.particles.Particle.prototype.isInteractive = () => false; + +// TODO: remove when resolved +/// ⚠️⚠️⚠️ BAND-AID FOR https://github.com/pixijs/particle-emitter/issues/209 +{ + const hexToRGB = (color, output?) => { + if (!output) { + output = {}; + } + if (color.charAt(0) === '#') { + color = color.substr(1); + } else if (color.indexOf('0x') === 0) { + color = color.substr(2); + } + let alpha; + if (color.length === 8) { + alpha = color.substr(0, 2); + color = color.substr(2); + } + output.r = parseInt(color.substr(0, 2), 16); // Red + output.g = parseInt(color.substr(2, 2), 16); // Green + output.b = parseInt(color.substr(4, 2), 16); // Blue + if (alpha) { + output.a = parseInt(alpha, 16); + } + return output; + }; + /* eslint-disable id-blacklist */ + PIXI.particles.PropertyNode.createList = (data) => { + const array = (data as any).list; + let node; + // eslint-disable-next-line prefer-destructuring + const {value, time} = array[0]; + // eslint-disable-next-line max-len + const first = node = new PIXI.particles.PropertyNode(typeof value === 'string' ? hexToRGB(value) : value, time, (data as any).ease); + // only set up subsequent nodes if there are a bunch of them + if (array.length > 1) { + for (let i = 1; i < array.length; ++i) { + const {value, time} = array[i]; + node.next = new PIXI.particles.PropertyNode(typeof value === 'string' ? hexToRGB(value) : value, time); + node = node.next; + } + } + first.isStepped = Boolean((data as any).isStepped); + return first; + }; + /* eslint-enable id-blacklist */ +} + import type {ExportedTandem, ExportedTandems} from '../node_requires/exporter/_exporterContracts'; type EmitterPatched = Emitter & { diff --git a/src/ct.release/index.pixi.ts b/src/ct.release/index.pixi.ts index ad8a394c6..a7a0abdc0 100644 --- a/src/ct.release/index.pixi.ts +++ b/src/ct.release/index.pixi.ts @@ -5,8 +5,6 @@ import {sound as pixiSound, filters as pixiSoundFilters} from 'node_modules/@pix /* eslint-disable @typescript-eslint/no-explicit-any */ export const PIXI = pixi; (PIXI as any).particles = particles; -// TODO: remove this band-aid when https://github.com/pixijs/pixijs/issues/9495 closes -PIXI.particles.Particle.prototype.isInteractive = () => false; (PIXI as any).sound = pixiSound; (PIXI as any).sound.filters = pixiSoundFilters; // (PIXI as any).sounds = sounds diff --git a/src/examples/catsteroids.ict b/src/examples/catsteroids.ict index b690f17a2..7887d0b93 100644 --- a/src/examples/catsteroids.ict +++ b/src/examples/catsteroids.ict @@ -2169,450 +2169,6 @@ assets: source: /home/comigo/Desktop/EnergyBolt_Blue.png r: 11 type: texture - - name: Shield - emitters: - - uid: f88b4911-11ef-4d1b-9269-27e91c9feddf - texture: 0abe6432-3fe2-4155-a39c-f054bb898c6e - openedTabs: - - texture - - scaling - - colors - - spawning - textureBehavior: textureRandom - animatedSingleFramerate: 10 - settings: - frequency: 0.105 - lifetime: - min: 0.5 - max: 0.5 - spawnChance: 1 - emitterLifetime: 0 - maxParticles: 101 - addAtBack: false - particlesPerWave: 1 - pos: - x: 0 - 'y': 0 - behaviors: - - type: alpha - config: - alpha: - list: - - value: 0 - time: 0 - - value: 0.99 - time: 0.492 - - value: 0 - time: 1 - isStepped: false - - type: color - config: - color: - list: - - value: 70C4FF - time: 0 - - value: 70C4FF - time: 0.492 - - value: 70C4FF - time: 1 - isStepped: false - - type: blendMode - config: - blendMode: screen - - type: scale - config: - scale: - list: - - value: 0.75 - time: 0 - - value: 0.75 - time: 1 - isStepped: false - minMult: ! '' - - type: moveSpeed - config: - speed: - list: - - value: 1 - time: 0 - - value: 0 - time: 1 - isStepped: false - minMult: 1 - - type: spawnShape - config: - type: torus - data: - innerRadius: 0 - radius: 0 - x: 0 - 'y': 0 - rotation: true - - type: rotation - config: - minStart: 0 - maxStart: 360 - minSpeed: 0 - maxSpeed: 0 - accel: 90 - - uid: 1e120dea-3ab2-49ec-a3cd-c631d53679f4 - texture: 09da6761-b1dd-49bb-9560-69c639bc3167 - openedTabs: - - texture - - colors - - velocity - - scaling - - spawning - - shape - - rotation - - direction - textureBehavior: textureRandom - animatedSingleFramerate: 10 - settings: - frequency: 0.075 - lifetime: - min: 0.5 - max: 1 - spawnChance: 1 - emitterLifetime: 0 - maxParticles: 101 - addAtBack: false - particlesPerWave: 1 - pos: - x: 0 - 'y': 0 - behaviors: - - type: alpha - config: - alpha: - list: - - value: 0 - time: 0 - - value: 0.515 - time: 0.516 - - value: 0 - time: 1 - isStepped: false - - type: color - config: - color: - list: - - value: 70C4FF - time: 0 - - value: 70C4FF - time: 0.516 - - value: 70C4FF - time: 1 - isStepped: false - - type: blendMode - config: - blendMode: add - - type: scale - config: - scale: - list: - - value: 0.75 - time: 0 - - value: 0.75 - time: 1 - isStepped: false - minMult: ! '' - - type: moveSpeed - config: - speed: - list: - - value: 1 - time: 0 - - value: 0 - time: 1 - isStepped: false - minMult: 1 - - type: spawnShape - config: - type: torus - data: - innerRadius: 0 - radius: 0 - x: 0 - 'y': 0 - rotation: true - - type: rotation - config: - minStart: 0 - maxStart: 360 - minSpeed: 60 - maxSpeed: 90 - accel: 60 - uid: pt120169640d57 - lastmod: 1703596214025 - type: tandem - - name: PowerBoltTrail - emitters: - - uid: 7e2dca34-17cf-4c57-ae6d-382b174c0db2 - texture: c12edc06-ad3f-49f4-b9d4-3d33226e9ecc - openedTabs: - - texture - - shape - - spawning - - velocity - - direction - textureBehavior: textureRandom - animatedSingleFramerate: 10 - settings: - frequency: 0.028 - lifetime: - min: 0.25 - max: 0.75 - spawnChance: 1 - emitterLifetime: 0 - maxParticles: 1000 - addAtBack: false - particlesPerWave: 1 - pos: - x: 0 - 'y': 0 - behaviors: - - type: alpha - config: - alpha: - list: - - value: 0 - time: 0 - - time: 0.14799999999999996 - value: 0.47 - - value: 0.58 - time: 0.436 - - value: 0 - time: 1 - isStepped: false - - type: color - config: - color: - list: - - value: ffffff - time: 0 - - time: 0.14799999999999996 - value: 94FFFB - - value: ffffff - time: 0.436 - - value: ffffff - time: 1 - isStepped: false - - type: blendMode - config: - blendMode: add - - type: scale - config: - scale: - list: - - value: 1 - time: 0 - - value: 1 - time: 1 - isStepped: false - minMult: ! '' - - type: moveSpeed - config: - speed: - list: - - value: 412.5 - time: 0 - - value: 225 - time: 1 - isStepped: false - minMult: 1 - - type: spawnShape - config: - type: torus - data: - innerRadius: 0 - radius: 17 - x: 0 - 'y': 0 - rotation: false - - type: rotation - config: - minStart: 270 - maxStart: 270 - minSpeed: 0 - maxSpeed: 0 - accel: 0 - - uid: f7b5ca35-38aa-456c-8bbd-a455a3ff097c - texture: 4b86d5c4-ae3c-4edf-90d7-79a6778e9a29 - openedTabs: - - texture - - scaling - - velocity - textureBehavior: textureRandom - animatedSingleFramerate: 10 - settings: - frequency: 0.008 - lifetime: - min: 0.11 - max: 0.33 - spawnChance: 1 - emitterLifetime: 0 - maxParticles: 1000 - addAtBack: false - particlesPerWave: 1 - pos: - x: 0 - 'y': 0 - behaviors: - - type: alpha - config: - alpha: - list: - - value: 0 - time: 0 - - value: 1 - time: 0.5 - - value: 0 - time: 1 - isStepped: false - - type: color - config: - color: - list: - - value: ffffff - time: 0 - - value: ffffff - time: 0.5 - - value: ffffff - time: 1 - isStepped: false - - type: blendMode - config: - blendMode: normal - - type: scale - config: - scale: - list: - - value: 0.275 - time: 0 - - value: 0 - time: 1 - isStepped: false - minMult: ! '' - - type: moveSpeed - config: - speed: - list: - - value: 237.49999999999994 - time: 0 - - value: 362.5 - time: 1 - isStepped: false - minMult: 1 - - type: spawnShape - config: - type: torus - data: - innerRadius: 0 - radius: 32 - x: 0 - 'y': 0 - rotation: false - - type: rotation - config: - minStart: 0 - maxStart: 360 - minSpeed: 0 - maxSpeed: 0 - accel: 0 - uid: ptd33169b439d4 - lastmod: 1703596214025 - type: tandem - - name: Electricity - emitters: - - uid: a147e2f8-a42a-4748-8f4f-9fe0b994542c - texture: d4d167ee-e343-4af8-857b-691906585543 - openedTabs: - - texture - - colors - - scaling - - velocity - - shape - textureBehavior: textureRandom - animatedSingleFramerate: 10 - settings: - frequency: 0.008 - lifetime: - min: 0.1 - max: 0.05 - spawnChance: 0.41 - emitterLifetime: 0 - maxParticles: 1000 - addAtBack: false - particlesPerWave: 1 - pos: - x: 0 - 'y': 0 - behaviors: - - type: alpha - config: - alpha: - list: - - value: 0 - time: 0 - - value: 1 - time: 0.5 - - value: 0 - time: 1 - isStepped: false - - type: color - config: - color: - list: - - value: 4AB4FF - time: 0 - - value: 26A6FF - time: 0.5 - - value: 21A3FF - time: 1 - isStepped: false - - type: blendMode - config: - blendMode: add - - type: scale - config: - scale: - list: - - value: 0.22499999999999998 - time: 0 - - value: 0.175 - time: 1 - isStepped: false - minMult: 0.28 - - type: moveSpeed - config: - speed: - list: - - value: 10 - time: 0 - - value: 10 - time: 1 - isStepped: false - minMult: 1 - - type: spawnShape - config: - type: torus - data: - innerRadius: 0 - radius: 0 - x: 0 - 'y': 0 - rotation: true - - type: rotation - config: - minStart: 0 - maxStart: 360 - minSpeed: 0 - maxSpeed: 0 - accel: 0 - uid: pt308f91a06589 - lastmod: 1703596214025 - type: tandem - type: folder uid: GDQtzcwtbQNmDj colorClass: error @@ -4223,30 +3779,381 @@ assets: entries: - name: BlackHole emitters: - - uid: a322c711-6ee0-4ef0-a899-d2ee9595fd1c + - uid: a322c711-6ee0-4ef0-a899-d2ee9595fd1c + texture: 7b0c966f-2635-4138-8628-2e634af72e2f + openedTabs: + - texture + - direction + - shape + - colors + - spawning + - velocity + textureBehavior: textureRandom + animatedSingleFramerate: 10 + settings: + frequency: 0.012 + lifetime: + min: 0.4 + max: 0.8 + spawnChance: 1 + emitterLifetime: 9.5 + maxParticles: 1000 + addAtBack: false + particlesPerWave: 1 + pos: + x: 0 + 'y': -8 + behaviors: + - type: alpha + config: + alpha: + list: + - value: 0 + time: 0 + - value: 1 + time: 0.5 + - value: 1 + time: 1 + isStepped: false + - type: color + config: + color: + list: + - value: ffffff + time: 0 + - value: ffffff + time: 0.5 + - value: ffffff + time: 1 + isStepped: false + - type: blendMode + config: + blendMode: normal + - type: scale + config: + scale: + list: + - value: 1.61 + time: 0 + - time: 0.596 + value: 0.24999999999999994 + - value: 0.019999999999999962 + time: 1 + isStepped: false + minMult: 0.28 + - type: moveSpeed + config: + speed: + list: + - value: 375 + time: 0 + - value: 1162.5 + time: 1 + isStepped: false + minMult: 1 + - type: spawnShape + config: + type: torus + data: + innerRadius: 353 + radius: 521 + x: 0 + 'y': 0 + rotation: true + - type: rotation + config: + minStart: -190 + maxStart: -210 + minSpeed: -180 + maxSpeed: 180 + accel: 3000 + - uid: 09bef405-f1f9-4935-b953-d405dea0e064 + texture: 09da6761-b1dd-49bb-9560-69c639bc3167 + openedTabs: + - texture + - shape + - colors + - spawning + - velocity + - rotation + - scaling + textureBehavior: textureRandom + animatedSingleFramerate: 10 + settings: + frequency: 0.03 + lifetime: + min: 0.5 + max: 0.5 + spawnChance: 1 + emitterLifetime: 10 + maxParticles: 1000 + addAtBack: false + particlesPerWave: 1 + pos: + x: 0 + 'y': -8 + behaviors: + - type: alpha + config: + alpha: + list: + - value: 0 + time: 0 + - value: 1 + time: 0.5 + - time: 0.8160000000000001 + value: 0.7500000000000001 + - value: 0 + time: 1 + isStepped: false + - type: color + config: + color: + list: + - value: '000000' + time: 0 + - value: '000000' + time: 0.5 + - time: 0.8160000000000001 + value: '000000' + - value: '000000' + time: 1 + isStepped: false + - type: blendMode + config: + blendMode: multiply + - type: scale + config: + scale: + list: + - value: 1.46 + time: 0 + - value: 0.31999999999999995 + time: 1 + isStepped: false + minMult: 0.4 + - type: moveSpeed + config: + speed: + list: + - value: 1 + time: 0 + - value: 1 + time: 1 + isStepped: false + minMult: 1 + - type: spawnShape + config: + type: torus + data: + innerRadius: 0 + radius: 0 + x: 0 + 'y': 0 + rotation: true + - type: rotation + config: + minStart: 0 + maxStart: 360 + minSpeed: 0 + maxSpeed: 960 + accel: 0 + - uid: d750d9b0-e2db-447e-a9fa-1bed03c60830 + texture: 0abe6432-3fe2-4155-a39c-f054bb898c6e + openedTabs: + - texture + textureBehavior: textureRandom + animatedSingleFramerate: 10 + settings: + frequency: 0.5 + lifetime: + min: 0.5 + max: 0.5 + spawnChance: 1 + emitterLifetime: 10 + maxParticles: 1000 + addAtBack: false + particlesPerWave: 2 + pos: + x: 0 + 'y': -8 + behaviors: + - type: alpha + config: + alpha: + list: + - value: 0 + time: 0 + - value: 1 + time: 0.5 + - value: 0 + time: 1 + isStepped: false + - type: color + config: + color: + list: + - value: FF0004 + time: 0 + - value: FF0004 + time: 0.5 + - value: FF0004 + time: 1 + isStepped: false + - type: blendMode + config: + blendMode: add + - type: scale + config: + scale: + list: + - value: 0.15 + time: 0 + - value: 0.15 + time: 1 + isStepped: false + minMult: ! '' + - type: moveSpeed + config: + speed: + list: + - value: 0 + time: 0 + - value: 0 + time: 1 + isStepped: false + minMult: 1 + - type: spawnShape + config: + type: torus + data: + innerRadius: 0 + radius: 0 + x: 0 + 'y': 0 + rotation: true + - type: rotation + config: + minStart: 0 + maxStart: 360 + minSpeed: 0 + maxSpeed: 0 + accel: 0 + - uid: 57c92f27-a9b5-45d5-8dee-7874399cacc8 + texture: d4d167ee-e343-4af8-857b-691906585543 + openedTabs: + - texture + - colors + - scaling + - spawning + textureBehavior: textureRandom + animatedSingleFramerate: 10 + settings: + frequency: 0.008 + lifetime: + min: 0.1 + max: 0.1 + spawnChance: 1 + emitterLifetime: 9.5 + maxParticles: 1000 + addAtBack: false + particlesPerWave: 3 + pos: + x: 0 + 'y': 0 + behaviors: + - type: alpha + config: + alpha: + list: + - value: 0 + time: 0 + - time: 0.27599999999999997 + value: 1 + - value: 0.99 + time: 0.728 + - value: 0 + time: 1 + isStepped: false + - type: color + config: + color: + list: + - value: FF0004 + time: 0 + - time: 0.27599999999999997 + value: FF0004 + - value: FF0004 + time: 0.728 + - value: FF0004 + time: 1 + isStepped: false + - type: blendMode + config: + blendMode: add + - type: scale + config: + scale: + list: + - value: 0.1 + time: 0 + - value: 0.15000000000000002 + time: 1 + isStepped: false + minMult: 0.04 + - type: moveSpeed + config: + speed: + list: + - value: 1 + time: 0 + - value: 1 + time: 1 + isStepped: false + minMult: 1 + - type: spawnShape + config: + type: torus + data: + innerRadius: 89 + radius: 249 + x: 0 + 'y': 0 + rotation: true + - type: rotation + config: + minStart: 0 + maxStart: 360 + minSpeed: 0 + maxSpeed: 0 + accel: 0 + uid: pt6e1d42625999 + lastmod: 1703606767297 + type: tandem + - name: ChunkBurst + emitters: + - uid: 41944f45-059b-49f7-932b-8c5ae5efd7d1 texture: 7b0c966f-2635-4138-8628-2e634af72e2f openedTabs: - texture - direction - - shape - - colors - spawning - - velocity + - colors textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.012 + frequency: 0.01 lifetime: - min: 0.4 - max: 0.8 + min: 0.5 + max: 2 spawnChance: 1 - emitterLifetime: 9.5 + emitterLifetime: 0.1 maxParticles: 1000 addAtBack: false particlesPerWave: 1 pos: x: 0 - 'y': -8 + 'y': 0 behaviors: - type: alpha config: @@ -4254,9 +4161,11 @@ assets: list: - value: 0 time: 0 + - time: 0.12 + value: 0.5149999999999999 - value: 1 time: 0.5 - - value: 1 + - value: 0 time: 1 isStepped: false - type: color @@ -4265,6 +4174,8 @@ assets: list: - value: ffffff time: 0 + - time: 0.12 + value: FFFFFF - value: ffffff time: 0.5 - value: ffffff @@ -4277,76 +4188,171 @@ assets: config: scale: list: - - value: 1.61 + - value: 1 time: 0 - - time: 0.596 - value: 0.24999999999999994 - - value: 0.019999999999999962 + - value: 0.35 time: 1 isStepped: false - minMult: 0.28 + minMult: ! '' - type: moveSpeed config: speed: list: - - value: 375 + - value: 500 time: 0 - - value: 1162.5 + - value: 100 time: 1 isStepped: false - minMult: 1 + minMult: 0.01 - type: spawnShape config: type: torus data: - innerRadius: 353 - radius: 521 + innerRadius: 0 + radius: 64 x: 0 'y': 0 rotation: true - type: rotation config: - minStart: -190 - maxStart: -210 - minSpeed: -180 - maxSpeed: 180 - accel: 3000 - - uid: 09bef405-f1f9-4935-b953-d405dea0e064 - texture: 09da6761-b1dd-49bb-9560-69c639bc3167 + minStart: 0 + maxStart: 360 + minSpeed: -720 + maxSpeed: 720 + accel: 0 + - uid: 557138cf-3508-4a4c-a9bd-2dff57933279 + texture: a27fae91-d007-4683-910b-020b4fb76d72 openedTabs: - texture - - shape + - spawning - colors + textureBehavior: textureRandom + animatedSingleFramerate: 10 + settings: + frequency: 0.005 + lifetime: + min: 3 + max: 5 + spawnChance: 1 + emitterLifetime: 0.1 + maxParticles: 1000 + addAtBack: false + particlesPerWave: 1 + pos: + x: 0 + 'y': 0 + behaviors: + - type: alpha + config: + alpha: + list: + - value: 0 + time: 0 + - time: 0.07199999999999998 + value: 0.33999999999999997 + - value: 0.635 + time: 0.256 + - time: 0.5 + value: 0.5449999999999999 + - value: 0 + time: 1 + isStepped: false + - type: color + config: + color: + list: + - value: '919191' + time: 0 + - time: 0.07199999999999998 + value: '898989' + - value: 7A7A7A + time: 0.256 + - time: 0.5 + value: '787878' + - value: '757575' + time: 1 + isStepped: false + - type: blendMode + config: + blendMode: normal + - type: scale + config: + scale: + list: + - value: 0.24999999999999994 + time: 0 + - value: 0.75 + time: 1 + isStepped: false + minMult: ! '' + - type: moveSpeed + config: + speed: + list: + - value: 162.5 + time: 0 + - value: 0 + time: 1 + isStepped: false + minMult: 0.07 + - type: spawnShape + config: + type: torus + data: + innerRadius: 0 + radius: 128 + x: 0 + 'y': 0 + rotation: true + - type: rotation + config: + minStart: 0 + maxStart: 360 + minSpeed: -45 + maxSpeed: 45 + accel: 0 + uid: ptc59f1e6a5496 + lastmod: 1703607071497 + type: tandem + - name: Explosion + emitters: + - uid: 5099d52e-3df7-4c85-b8bb-4fc7a42026ee + texture: 3d256840-cbd1-4241-a8c2-4d5432e6b9ce + openedTabs: + - texture + - direction - spawning - velocity - - rotation - - scaling textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.03 + frequency: 0.015 lifetime: - min: 0.5 + min: 0.25 max: 0.5 spawnChance: 1 - emitterLifetime: 10 + emitterLifetime: 0.1 maxParticles: 1000 addAtBack: false particlesPerWave: 1 pos: x: 0 - 'y': -8 + 'y': 0 behaviors: - type: alpha config: alpha: list: - - value: 0 + - value: 0.01999999999999999 time: 0 - - value: 1 - time: 0.5 - - time: 0.8160000000000001 - value: 0.7500000000000001 + - time: 0.112 + value: 0.30500000000000005 + - time: 0.236 + value: 0.5050000000000001 + - value: 0.5900000000000001 + time: 0.392 + - time: 0.572 + value: 0.5 - value: 0 time: 1 isStepped: false @@ -4354,35 +4360,39 @@ assets: config: color: list: - - value: '000000' + - value: FF3C00 time: 0 - - value: '000000' - time: 0.5 - - time: 0.8160000000000001 - value: '000000' - - value: '000000' + - time: 0.112 + value: FF551A + - time: 0.236 + value: FF682E + - value: FF7B42 + time: 0.392 + - time: 0.572 + value: FFD599 + - value: FF5F19 time: 1 isStepped: false - type: blendMode config: - blendMode: multiply + blendMode: add - type: scale config: scale: list: - - value: 1.46 + - value: 0.020000000000000018 time: 0 - - value: 0.31999999999999995 + - value: 1.6999999999999997 time: 1 isStepped: false - minMult: 0.4 + minMult: ! '' - type: moveSpeed config: speed: list: - - value: 1 + - value: 10 time: 0 - - value: 1 + - value: 437.5 time: 1 isStepped: false minMult: 1 @@ -4391,7 +4401,7 @@ assets: type: torus data: innerRadius: 0 - radius: 0 + radius: 17 x: 0 'y': 0 rotation: true @@ -4400,36 +4410,45 @@ assets: minStart: 0 maxStart: 360 minSpeed: 0 - maxSpeed: 960 + maxSpeed: 8 accel: 0 - - uid: d750d9b0-e2db-447e-a9fa-1bed03c60830 - texture: 0abe6432-3fe2-4155-a39c-f054bb898c6e + delay: 0 + showShapeVisualizer: true + - uid: 84917cf1-bdcd-41f1-8a6a-37a972d6e17b + texture: a27fae91-d007-4683-910b-020b4fb76d72 openedTabs: - texture + - spawning + - colors + - velocity textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.5 + frequency: 0.01 lifetime: - min: 0.5 - max: 0.5 + min: 3 + max: 5 spawnChance: 1 - emitterLifetime: 10 + emitterLifetime: 0.1 maxParticles: 1000 addAtBack: false - particlesPerWave: 2 + particlesPerWave: 1 pos: x: 0 - 'y': -8 + 'y': 0 behaviors: - type: alpha config: alpha: list: - - value: 0 + - value: 2.7755575615628914e-17 time: 0 - - value: 1 - time: 0.5 + - time: 0.16 + value: 0.08999999999999997 + - time: 0.32 + value: 0.5499999999999999 + - value: 0.71 + time: 0.572 - value: 0 time: 1 isStepped: false @@ -4437,33 +4456,37 @@ assets: config: color: list: - - value: FF0004 + - value: '595959' time: 0 - - value: FF0004 - time: 0.5 - - value: FF0004 + - time: 0.16 + value: '383838' + - time: 0.32 + value: '292929' + - value: 2E2E2E + time: 0.572 + - value: '363636' time: 1 isStepped: false - type: blendMode config: - blendMode: add + blendMode: normal - type: scale config: scale: list: - - value: 0.15 + - value: 0.55 time: 0 - - value: 0.15 + - value: 1.75 time: 1 isStepped: false - minMult: ! '' + minMult: 0.25 - type: moveSpeed config: speed: list: - - value: 0 + - value: 10 time: 0 - - value: 0 + - value: 162.5 time: 1 isStepped: false minMult: 1 @@ -4472,7 +4495,7 @@ assets: type: torus data: innerRadius: 0 - radius: 0 + radius: 17 x: 0 'y': 0 rotation: true @@ -4480,28 +4503,38 @@ assets: config: minStart: 0 maxStart: 360 - minSpeed: 0 - maxSpeed: 0 + minSpeed: -60 + maxSpeed: 60 accel: 0 - - uid: 57c92f27-a9b5-45d5-8dee-7874399cacc8 - texture: d4d167ee-e343-4af8-857b-691906585543 + delay: 0 + showShapeVisualizer: true + uid: ptf66027e78457 + lastmod: 1703607223922 + type: tandem + - name: Explosion_Boss + emitters: + - uid: 5099d52e-3df7-4c85-b8bb-4fc7a42026ee + texture: 3d256840-cbd1-4241-a8c2-4d5432e6b9ce openedTabs: - texture - colors - scaling + - direction - spawning + - shape + - velocity textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.008 + frequency: 0.015 lifetime: - min: 0.1 - max: 0.1 + min: 0.25 + max: 0.5 spawnChance: 1 - emitterLifetime: 9.5 + emitterLifetime: 0.1 maxParticles: 1000 addAtBack: false - particlesPerWave: 3 + particlesPerWave: 1 pos: x: 0 'y': 0 @@ -4512,10 +4545,14 @@ assets: list: - value: 0 time: 0 - - time: 0.27599999999999997 - value: 1 - - value: 0.99 - time: 0.728 + - time: 0.112 + value: 0.30500000000000005 + - time: 0.236 + value: 0.5050000000000001 + - value: 0.5900000000000001 + time: 0.392 + - time: 0.572 + value: 0.5 - value: 0 time: 1 isStepped: false @@ -4523,13 +4560,17 @@ assets: config: color: list: - - value: FF0004 + - value: FF3C00 time: 0 - - time: 0.27599999999999997 - value: FF0004 - - value: FF0004 - time: 0.728 - - value: FF0004 + - time: 0.112 + value: FF551A + - time: 0.236 + value: FF682E + - value: FF7B42 + time: 0.392 + - time: 0.572 + value: FFD599 + - value: FF5F19 time: 1 isStepped: false - type: blendMode @@ -4539,19 +4580,19 @@ assets: config: scale: list: - - value: 0.1 + - value: 0.050000000000000044 time: 0 - - value: 0.15000000000000002 + - value: 1.9999999999999998 time: 1 isStepped: false - minMult: 0.04 + minMult: ! '' - type: moveSpeed config: speed: list: - - value: 1 + - value: 10 time: 0 - - value: 1 + - value: 0 time: 1 isStepped: false minMult: 1 @@ -4559,8 +4600,8 @@ assets: config: type: torus data: - innerRadius: 89 - radius: 249 + innerRadius: 0 + radius: 0 x: 0 'y': 0 rotation: true @@ -4571,29 +4612,23 @@ assets: minSpeed: 0 maxSpeed: 0 accel: 0 - uid: pt6e1d42625999 - lastmod: 1703596214025 - type: tandem - - name: ChunkBurst - emitters: - - uid: 41944f45-059b-49f7-932b-8c5ae5efd7d1 - texture: 7b0c966f-2635-4138-8628-2e634af72e2f + delay: 0 + - uid: 84917cf1-bdcd-41f1-8a6a-37a972d6e17b + texture: a27fae91-d007-4683-910b-020b4fb76d72 openedTabs: - texture + - spawning - colors + - shape - velocity - - direction - - rotation - scaling - - spawning - - shape textureBehavior: textureRandom animatedSingleFramerate: 10 settings: frequency: 0.01 lifetime: - min: 0.5 - max: 2 + min: 3 + max: 5 spawnChance: 1 emitterLifetime: 0.1 maxParticles: 1000 @@ -4609,10 +4644,12 @@ assets: list: - value: 0 time: 0 - - time: 0.12 - value: 0.5149999999999999 - - value: 1 - time: 0.5 + - time: 0.16 + value: 0.08999999999999997 + - time: 0.32 + value: 0.5499999999999999 + - value: 0.71 + time: 0.572 - value: 0 time: 1 isStepped: false @@ -4620,13 +4657,15 @@ assets: config: color: list: - - value: ffffff + - value: '595959' time: 0 - - time: 0.12 - value: FFFFFF - - value: ffffff - time: 0.5 - - value: ffffff + - time: 0.16 + value: '383838' + - time: 0.32 + value: '292929' + - value: 2E2E2E + time: 0.572 + - value: '363636' time: 1 isStepped: false - type: blendMode @@ -4636,28 +4675,28 @@ assets: config: scale: list: - - value: 1 + - value: 0.55 time: 0 - - value: 0.35 + - value: 1.93 time: 1 isStepped: false - minMult: ! '' + minMult: 0.25 - type: moveSpeed config: speed: list: - - value: 500 + - value: 10 time: 0 - - value: 100 + - value: 0 time: 1 isStepped: false - minMult: 0.01 + minMult: 1 - type: spawnShape config: type: torus data: innerRadius: 0 - radius: 64 + radius: 105 x: 0 'y': 0 rotation: true @@ -4665,28 +4704,27 @@ assets: config: minStart: 0 maxStart: 360 - minSpeed: -720 - maxSpeed: 720 + minSpeed: -60 + maxSpeed: 60 accel: 0 - - uid: 557138cf-3508-4a4c-a9bd-2dff57933279 - texture: a27fae91-d007-4683-910b-020b4fb76d72 + delay: 0 + - uid: 9a5de025-33dd-4de2-a570-e67fc99ff763 + texture: d4d167ee-e343-4af8-857b-691906585543 openedTabs: - texture - - shape - colors - - velocity - spawning - - scaling - - rotation + - velocity + - shape textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.005 + frequency: 0.008 lifetime: - min: 3 - max: 5 + min: 0.05 + max: 0.05 spawnChance: 1 - emitterLifetime: 0.1 + emitterLifetime: 2.6 maxParticles: 1000 addAtBack: false particlesPerWave: 1 @@ -4698,42 +4736,34 @@ assets: config: alpha: list: - - value: 0 + - value: 0.665 time: 0 - - time: 0.07199999999999998 - value: 0.33999999999999997 - - value: 0.635 - time: 0.256 - - time: 0.5 - value: 0.5449999999999999 - - value: 0 + - value: 1 + time: 0.5 + - value: 0.005 time: 1 isStepped: false - type: color config: color: list: - - value: '919191' + - value: FF0004 time: 0 - - time: 0.07199999999999998 - value: '898989' - - value: 7A7A7A - time: 0.256 - - time: 0.5 - value: '787878' - - value: '757575' + - value: FF0004 + time: 0.5 + - value: FF0004 time: 1 isStepped: false - type: blendMode config: - blendMode: normal + blendMode: add - type: scale config: scale: list: - - value: 0.24999999999999994 + - value: 0.08999999999999996 time: 0 - - value: 0.75 + - value: 0.08999999999999997 time: 1 isStepped: false minMult: ! '' @@ -4741,18 +4771,18 @@ assets: config: speed: list: - - value: 162.5 + - value: 1 time: 0 - - value: 0 + - value: 1 time: 1 isStepped: false - minMult: 0.07 + minMult: 1 - type: spawnShape config: type: torus data: innerRadius: 0 - radius: 128 + radius: 193 x: 0 'y': 0 rotation: true @@ -4760,31 +4790,25 @@ assets: config: minStart: 0 maxStart: 360 - minSpeed: -45 - maxSpeed: 45 + minSpeed: -3000 + maxSpeed: 3000 accel: 0 - uid: ptc59f1e6a5496 - lastmod: 1703596214025 - type: tandem - - name: Explosion - emitters: - - uid: 5099d52e-3df7-4c85-b8bb-4fc7a42026ee - texture: 3d256840-cbd1-4241-a8c2-4d5432e6b9ce + - uid: 968ed96e-3965-4019-a112-3562b4b0d43d + texture: 7b0c966f-2635-4138-8628-2e634af72e2f openedTabs: - texture - colors - - scaling - - direction - - spawning + - velocity + - rotation textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.015 + frequency: 0.008 lifetime: - min: 0.25 - max: 0.5 + min: 1.01 + max: 3 spawnChance: 1 - emitterLifetime: 0.1 + emitterLifetime: 0.2 maxParticles: 1000 addAtBack: false particlesPerWave: 1 @@ -4796,16 +4820,12 @@ assets: config: alpha: list: - - value: 0 + - value: 0.010000000000000009 time: 0 - - time: 0.112 - value: 0.30500000000000005 - - time: 0.236 - value: 0.5050000000000001 - - value: 0.5900000000000001 - time: 0.392 - - time: 0.572 - value: 0.5 + - value: 0.995 + time: 0.10399999999999998 + - time: 0.8360000000000001 + value: 1 - value: 0 time: 1 isStepped: false @@ -4813,48 +4833,44 @@ assets: config: color: list: - - value: FF3C00 + - value: 4F4444 time: 0 - - time: 0.112 - value: FF551A - - time: 0.236 - value: FF682E - - value: FF7B42 - time: 0.392 - - time: 0.572 - value: FFD599 - - value: FF5F19 + - value: 4F4444 + time: 0.10399999999999998 + - time: 0.8360000000000001 + value: 4F4444 + - value: 4F4444 time: 1 isStepped: false - type: blendMode config: - blendMode: add + blendMode: normal - type: scale config: scale: list: - - value: 0.050000000000000044 + - value: 1.9600000000000002 time: 0 - - value: 1.6999999999999997 + - value: 1.9700000000000002 time: 1 isStepped: false - minMult: ! '' + minMult: 0.06 - type: moveSpeed config: speed: list: - - value: 0 + - value: 500 time: 0 - - value: 0 + - value: 100 time: 1 isStepped: false - minMult: 1 + minMult: 0.06 - type: spawnShape config: type: torus data: innerRadius: 0 - radius: 0 + radius: 105 x: 0 'y': 0 rotation: true @@ -4862,27 +4878,33 @@ assets: config: minStart: 0 maxStart: 360 - minSpeed: 0 - maxSpeed: 0 + minSpeed: -720 + maxSpeed: 720 accel: 0 - - uid: 84917cf1-bdcd-41f1-8a6a-37a972d6e17b - texture: a27fae91-d007-4683-910b-020b4fb76d72 + uid: a329eefd-0d65-4f4c-a02a-7579996e55b4 + lastmod: 1703607240696 + type: tandem + - name: JetFlame + emitters: + - uid: 15abdb0e-27b1-4cd6-b48c-7aa51ef35f42 + texture: 2aa65cbc-101f-4bfd-b1e0-b5106ab0dc99 openedTabs: - texture - - spawning - - colors - shape - velocity + - spawning - scaling + - colors + - direction textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.01 + frequency: 0.04 lifetime: - min: 3 - max: 5 - spawnChance: 1 - emitterLifetime: 0.1 + min: 0.25 + max: 0.75 + spawnChance: 0.81 + emitterLifetime: 0 maxParticles: 1000 addAtBack: false particlesPerWave: 1 @@ -4896,12 +4918,10 @@ assets: list: - value: 0 time: 0 - - time: 0.16 - value: 0.08999999999999997 - - time: 0.32 - value: 0.5499999999999999 - - value: 0.71 - time: 0.572 + - time: 0.15599999999999997 + value: 0.815 + - value: 0.95 + time: 0.5680000000000001 - value: 0 time: 1 isStepped: false @@ -4909,37 +4929,35 @@ assets: config: color: list: - - value: '595959' + - value: F53D25 time: 0 - - time: 0.16 - value: '383838' - - time: 0.32 - value: '292929' - - value: 2E2E2E - time: 0.572 - - value: '363636' + - time: 0.15599999999999997 + value: F56925 + - value: F5A225 + time: 0.5680000000000001 + - value: F5A225 time: 1 isStepped: false - type: blendMode config: - blendMode: normal + blendMode: add - type: scale config: scale: list: - - value: 0.55 + - value: 0.2 time: 0 - - value: 1.75 + - value: 0.2 time: 1 isStepped: false - minMult: 0.25 + minMult: ! '' - type: moveSpeed config: speed: list: - - value: 0 + - value: 70 time: 0 - - value: 0 + - value: 50 time: 1 isStepped: false minMult: 1 @@ -4954,33 +4972,191 @@ assets: rotation: true - type: rotation config: - minStart: 0 - maxStart: 360 - minSpeed: -60 - maxSpeed: 60 + minStart: 90 + maxStart: 90 + minSpeed: 0 + maxSpeed: 0 accel: 0 - uid: ptf66027e78457 - lastmod: 1703596214025 + uid: ptda1961939384 + lastmod: 1703606929072 type: tandem - - name: Explosion_Boss + - name: Scorch + untill: 0 + grid: + - 3 + - 1 + axis: + - 0 + - 0 + marginx: 0 + marginy: 0 + imgWidth: 1536 + imgHeight: 512 + width: 512 + height: 512 + offx: 0 + offy: 0 + origname: i3d256840-cbd1-4241-a8c2-4d5432e6b9ce.png + source: data/particles/Scorch_3x1.png + shape: rect + left: 0 + right: 512 + top: 0 + bottom: 512 + uid: 3d256840-cbd1-4241-a8c2-4d5432e6b9ce + padding: 1 + type: texture + - name: Smoke + untill: 0 + grid: + - 4 + - 2 + axis: + - 0 + - 0 + marginx: 0 + marginy: 0 + imgWidth: 2048 + imgHeight: 1024 + width: 512 + height: 512 + offx: 0 + offy: 0 + origname: ia27fae91-d007-4683-910b-020b4fb76d72.png + source: data/particles/Smoke_4x2.png + shape: rect + left: 0 + right: 512 + top: 0 + bottom: 512 + uid: a27fae91-d007-4683-910b-020b4fb76d72 + padding: 1 + type: texture + - name: Spark + untill: 0 + grid: + - 2 + - 2 + axis: + - 0 + - 0 + marginx: 0 + marginy: 0 + imgWidth: 1024 + imgHeight: 1024 + width: 512 + height: 512 + offx: 0 + offy: 0 + origname: id4d167ee-e343-4af8-857b-691906585543.png + source: data/particles/Spark_2x2.png + shape: rect + left: 0 + right: 512 + top: 0 + bottom: 512 + uid: d4d167ee-e343-4af8-857b-691906585543 + padding: 1 + type: texture + - name: Stars_Big + untill: 0 + grid: + - 1 + - 1 + axis: + - 0 + - 0 + marginx: 0 + marginy: 0 + imgWidth: 1024 + imgHeight: 1024 + width: 1024 + height: 1024 + offx: 0 + offy: 0 + origname: ie86811b4-8d80-4d2a-8003-b490165fa078.png + source: /home/comigo/Desktop/Stars-Big_1_1_PC.png + shape: rect + left: 0 + right: 1024 + top: 0 + bottom: 1024 + uid: e86811b4-8d80-4d2a-8003-b490165fa078 + padding: 1 + lastmod: 1661070201383 + tiled: true + type: texture + - name: Twirl_03 + untill: 0 + grid: + - 1 + - 1 + axis: + - 0 + - 0 + marginx: 0 + marginy: 0 + imgWidth: 512 + imgHeight: 512 + width: 512 + height: 512 + offx: 0 + offy: 0 + origname: i09da6761-b1dd-49bb-9560-69c639bc3167.png + source: data/particles/Twirl_03.png + shape: rect + left: 0 + right: 512 + top: 0 + bottom: 512 + uid: 09da6761-b1dd-49bb-9560-69c639bc3167 + padding: 1 + type: texture + - name: Light_02 + untill: 0 + grid: + - 1 + - 1 + axis: + - 0 + - 0 + marginx: 0 + marginy: 0 + imgWidth: 512 + imgHeight: 512 + width: 512 + height: 512 + offx: 0 + offy: 0 + origname: i0abe6432-3fe2-4155-a39c-f054bb898c6e.png + source: data/particles/Light_02.png + shape: rect + left: 0 + right: 512 + top: 0 + bottom: 512 + uid: 0abe6432-3fe2-4155-a39c-f054bb898c6e + padding: 1 + type: texture + - name: Electricity emitters: - - uid: 5099d52e-3df7-4c85-b8bb-4fc7a42026ee - texture: 3d256840-cbd1-4241-a8c2-4d5432e6b9ce + - uid: a147e2f8-a42a-4748-8f4f-9fe0b994542c + texture: d4d167ee-e343-4af8-857b-691906585543 openedTabs: - texture - colors - scaling - - direction - - spawning + - velocity + - shape textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.015 + frequency: 0.008 lifetime: - min: 0.25 - max: 0.5 - spawnChance: 1 - emitterLifetime: 0.1 + min: 0.1 + max: 0.05 + spawnChance: 0.41 + emitterLifetime: 0 maxParticles: 1000 addAtBack: false particlesPerWave: 1 @@ -4994,14 +5170,8 @@ assets: list: - value: 0 time: 0 - - time: 0.112 - value: 0.30500000000000005 - - time: 0.236 - value: 0.5050000000000001 - - value: 0.5900000000000001 - time: 0.392 - - time: 0.572 - value: 0.5 + - value: 1 + time: 0.5 - value: 0 time: 1 isStepped: false @@ -5009,17 +5179,11 @@ assets: config: color: list: - - value: FF3C00 + - value: 4AB4FF time: 0 - - time: 0.112 - value: FF551A - - time: 0.236 - value: FF682E - - value: FF7B42 - time: 0.392 - - time: 0.572 - value: FFD599 - - value: FF5F19 + - value: 26A6FF + time: 0.5 + - value: 21A3FF time: 1 isStepped: false - type: blendMode @@ -5029,19 +5193,19 @@ assets: config: scale: list: - - value: 0.050000000000000044 + - value: 0.22499999999999998 time: 0 - - value: 1.9999999999999998 + - value: 0.175 time: 1 isStepped: false - minMult: ! '' + minMult: 0.28 - type: moveSpeed config: speed: list: - - value: 0 + - value: 10 time: 0 - - value: 0 + - value: 10 time: 1 isStepped: false minMult: 1 @@ -5061,24 +5225,30 @@ assets: minSpeed: 0 maxSpeed: 0 accel: 0 - - uid: 84917cf1-bdcd-41f1-8a6a-37a972d6e17b - texture: a27fae91-d007-4683-910b-020b4fb76d72 + uid: pt308f91a06589 + lastmod: 1703607364099 + type: tandem + - name: PowerBoltTrail + emitters: + - uid: 7e2dca34-17cf-4c57-ae6d-382b174c0db2 + texture: 0abe6432-3fe2-4155-a39c-f054bb898c6e openedTabs: - texture - spawning + - direction + - rotation + - scaling - colors - - shape - velocity - - scaling textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.01 + frequency: 0.028 lifetime: - min: 3 - max: 5 + min: 0.25 + max: 0.75 spawnChance: 1 - emitterLifetime: 0.1 + emitterLifetime: 0 maxParticles: 1000 addAtBack: false particlesPerWave: 1 @@ -5092,12 +5262,10 @@ assets: list: - value: 0 time: 0 - - time: 0.16 - value: 0.08999999999999997 - - time: 0.32 - value: 0.5499999999999999 - - value: 0.71 - time: 0.572 + - time: 0.14799999999999996 + value: 0.47 + - value: 0.58 + time: 0.436 - value: 0 time: 1 isStepped: false @@ -5105,35 +5273,33 @@ assets: config: color: list: - - value: '595959' + - value: 8ABDFF time: 0 - - time: 0.16 - value: '383838' - - time: 0.32 - value: '292929' - - value: 2E2E2E - time: 0.572 - - value: '363636' + - time: 0.14799999999999996 + value: 94FFFB + - value: 8ABDFF + time: 0.436 + - value: 8ABDFF time: 1 isStepped: false - type: blendMode config: - blendMode: normal + blendMode: add - type: scale config: scale: list: - - value: 0.55 + - value: 0 time: 0 - - value: 1.93 + - value: 0.32 time: 1 isStepped: false - minMult: 0.25 + minMult: ! '' - type: moveSpeed config: speed: list: - - value: 0 + - value: 576 time: 0 - value: 0 time: 1 @@ -5143,35 +5309,35 @@ assets: config: type: torus data: - innerRadius: 0 - radius: 105 x: 0 'y': 0 + radius: 0 + innerRadius: 0 rotation: true + affectRotation: false - type: rotation config: - minStart: 0 - maxStart: 360 - minSpeed: -60 - maxSpeed: 60 + minStart: 270 + maxStart: 270 + minSpeed: 0 + maxSpeed: -0.0 accel: 0 - - uid: 9a5de025-33dd-4de2-a570-e67fc99ff763 - texture: d4d167ee-e343-4af8-857b-691906585543 + showShapeVisualizer: false + - uid: f7b5ca35-38aa-456c-8bbd-a455a3ff097c + texture: 4b86d5c4-ae3c-4edf-90d7-79a6778e9a29 openedTabs: - texture - - colors - - spawning + - scaling - velocity - - shape textureBehavior: textureRandom animatedSingleFramerate: 10 settings: frequency: 0.008 lifetime: - min: 0.05 - max: 0.05 + min: 0.11 + max: 0.33 spawnChance: 1 - emitterLifetime: 2.6 + emitterLifetime: 0 maxParticles: 1000 addAtBack: false particlesPerWave: 1 @@ -5183,34 +5349,34 @@ assets: config: alpha: list: - - value: 0.665 + - value: 0 time: 0 - value: 1 time: 0.5 - - value: 0.005 + - value: 0 time: 1 isStepped: false - type: color config: color: list: - - value: FF0004 + - value: ffffff time: 0 - - value: FF0004 + - value: ffffff time: 0.5 - - value: FF0004 + - value: ffffff time: 1 isStepped: false - type: blendMode config: - blendMode: add + blendMode: normal - type: scale config: scale: list: - - value: 0.08999999999999996 + - value: 0.275 time: 0 - - value: 0.08999999999999997 + - value: 0 time: 1 isStepped: false minMult: ! '' @@ -5218,9 +5384,9 @@ assets: config: speed: list: - - value: 1 + - value: 237.49999999999994 time: 0 - - value: 1 + - value: 362.5 time: 1 isStepped: false minMult: 1 @@ -5229,34 +5395,40 @@ assets: type: torus data: innerRadius: 0 - radius: 193 + radius: 32 x: 0 'y': 0 - rotation: true + rotation: false - type: rotation config: minStart: 0 maxStart: 360 - minSpeed: -3000 - maxSpeed: 3000 + minSpeed: 0 + maxSpeed: 0 accel: 0 - - uid: 968ed96e-3965-4019-a112-3562b4b0d43d - texture: 7b0c966f-2635-4138-8628-2e634af72e2f + uid: ptd33169b439d4 + lastmod: 1703607607663 + type: tandem + previewTexture: c12edc06-ad3f-49f4-b9d4-3d33226e9ecc + - name: Shield + emitters: + - uid: f88b4911-11ef-4d1b-9269-27e91c9feddf + texture: 0abe6432-3fe2-4155-a39c-f054bb898c6e openedTabs: - texture + - scaling - colors - - velocity - - rotation + - spawning textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.008 + frequency: 0.105 lifetime: - min: 1.01 - max: 3 + min: 0.5 + max: 0.5 spawnChance: 1 - emitterLifetime: 0.2 - maxParticles: 1000 + emitterLifetime: 0 + maxParticles: 101 addAtBack: false particlesPerWave: 1 pos: @@ -5266,13 +5438,11 @@ assets: - type: alpha config: alpha: - list: - - value: 0.010000000000000009 - time: 0 - - value: 0.995 - time: 0.10399999999999998 - - time: 0.8360000000000001 - value: 1 + list: + - value: 0 + time: 0 + - value: 0.99 + time: 0.492 - value: 0 time: 1 isStepped: false @@ -5280,44 +5450,42 @@ assets: config: color: list: - - value: 4F4444 + - value: 70C4FF time: 0 - - value: 4F4444 - time: 0.10399999999999998 - - time: 0.8360000000000001 - value: 4F4444 - - value: 4F4444 + - value: 70C4FF + time: 0.492 + - value: 70C4FF time: 1 isStepped: false - type: blendMode config: - blendMode: normal + blendMode: screen - type: scale config: scale: list: - - value: 1.9600000000000002 + - value: 0.75 time: 0 - - value: 1.9700000000000002 + - value: 0.75 time: 1 isStepped: false - minMult: 0.06 + minMult: ! '' - type: moveSpeed config: speed: list: - - value: 500 + - value: 1 time: 0 - - value: 100 + - value: 0 time: 1 isStepped: false - minMult: 0.06 + minMult: 1 - type: spawnShape config: type: torus data: innerRadius: 0 - radius: 105 + radius: 0 x: 0 'y': 0 rotation: true @@ -5325,34 +5493,30 @@ assets: config: minStart: 0 maxStart: 360 - minSpeed: -720 - maxSpeed: 720 - accel: 0 - uid: a329eefd-0d65-4f4c-a02a-7579996e55b4 - lastmod: 1703596214025 - type: tandem - - name: JetFlame - emitters: - - uid: 15abdb0e-27b1-4cd6-b48c-7aa51ef35f42 - texture: 2aa65cbc-101f-4bfd-b1e0-b5106ab0dc99 + minSpeed: 0 + maxSpeed: 0 + accel: 90 + - uid: 1e120dea-3ab2-49ec-a3cd-c631d53679f4 + texture: 09da6761-b1dd-49bb-9560-69c639bc3167 openedTabs: - texture - - shape + - colors - velocity - - spawning - scaling - - colors + - spawning + - shape + - rotation - direction textureBehavior: textureRandom animatedSingleFramerate: 10 settings: - frequency: 0.04 + frequency: 0.075 lifetime: - min: 0.25 - max: 0.75 - spawnChance: 0.81 + min: 0.5 + max: 1 + spawnChance: 1 emitterLifetime: 0 - maxParticles: 1000 + maxParticles: 101 addAtBack: false particlesPerWave: 1 pos: @@ -5365,10 +5529,8 @@ assets: list: - value: 0 time: 0 - - time: 0.15599999999999997 - value: 0.815 - - value: 0.95 - time: 0.5680000000000001 + - value: 0.515 + time: 0.516 - value: 0 time: 1 isStepped: false @@ -5376,13 +5538,11 @@ assets: config: color: list: - - value: F53D25 + - value: 70C4FF time: 0 - - time: 0.15599999999999997 - value: F56925 - - value: F5A225 - time: 0.5680000000000001 - - value: F5A225 + - value: 70C4FF + time: 0.516 + - value: 70C4FF time: 1 isStepped: false - type: blendMode @@ -5392,9 +5552,9 @@ assets: config: scale: list: - - value: 0.2 + - value: 0.75 time: 0 - - value: 0.2 + - value: 0.75 time: 1 isStepped: false minMult: ! '' @@ -5402,9 +5562,9 @@ assets: config: speed: list: - - value: 70 + - value: 1 time: 0 - - value: 50 + - value: 0 time: 1 isStepped: false minMult: 1 @@ -5419,172 +5579,14 @@ assets: rotation: true - type: rotation config: - minStart: 90 - maxStart: 90 - minSpeed: 0 - maxSpeed: 0 - accel: 0 - uid: ptda1961939384 - lastmod: 1703596214025 + minStart: 0 + maxStart: 360 + minSpeed: 60 + maxSpeed: 90 + accel: 60 + uid: pt120169640d57 + lastmod: 1703607368334 type: tandem - - name: Scorch - untill: 0 - grid: - - 3 - - 1 - axis: - - 0 - - 0 - marginx: 0 - marginy: 0 - imgWidth: 1536 - imgHeight: 512 - width: 512 - height: 512 - offx: 0 - offy: 0 - origname: i3d256840-cbd1-4241-a8c2-4d5432e6b9ce.png - source: data/particles/Scorch_3x1.png - shape: rect - left: 0 - right: 512 - top: 0 - bottom: 512 - uid: 3d256840-cbd1-4241-a8c2-4d5432e6b9ce - padding: 1 - type: texture - - name: Smoke - untill: 0 - grid: - - 4 - - 2 - axis: - - 0 - - 0 - marginx: 0 - marginy: 0 - imgWidth: 2048 - imgHeight: 1024 - width: 512 - height: 512 - offx: 0 - offy: 0 - origname: ia27fae91-d007-4683-910b-020b4fb76d72.png - source: data/particles/Smoke_4x2.png - shape: rect - left: 0 - right: 512 - top: 0 - bottom: 512 - uid: a27fae91-d007-4683-910b-020b4fb76d72 - padding: 1 - type: texture - - name: Spark - untill: 0 - grid: - - 2 - - 2 - axis: - - 0 - - 0 - marginx: 0 - marginy: 0 - imgWidth: 1024 - imgHeight: 1024 - width: 512 - height: 512 - offx: 0 - offy: 0 - origname: id4d167ee-e343-4af8-857b-691906585543.png - source: data/particles/Spark_2x2.png - shape: rect - left: 0 - right: 512 - top: 0 - bottom: 512 - uid: d4d167ee-e343-4af8-857b-691906585543 - padding: 1 - type: texture - - name: Stars_Big - untill: 0 - grid: - - 1 - - 1 - axis: - - 0 - - 0 - marginx: 0 - marginy: 0 - imgWidth: 1024 - imgHeight: 1024 - width: 1024 - height: 1024 - offx: 0 - offy: 0 - origname: ie86811b4-8d80-4d2a-8003-b490165fa078.png - source: /home/comigo/Desktop/Stars-Big_1_1_PC.png - shape: rect - left: 0 - right: 1024 - top: 0 - bottom: 1024 - uid: e86811b4-8d80-4d2a-8003-b490165fa078 - padding: 1 - lastmod: 1661070201383 - tiled: true - type: texture - - name: Twirl_03 - untill: 0 - grid: - - 1 - - 1 - axis: - - 0 - - 0 - marginx: 0 - marginy: 0 - imgWidth: 512 - imgHeight: 512 - width: 512 - height: 512 - offx: 0 - offy: 0 - origname: i09da6761-b1dd-49bb-9560-69c639bc3167.png - source: data/particles/Twirl_03.png - shape: rect - left: 0 - right: 512 - top: 0 - bottom: 512 - uid: 09da6761-b1dd-49bb-9560-69c639bc3167 - padding: 1 - type: texture - - name: Light_02 - untill: 0 - grid: - - 1 - - 1 - axis: - - 0 - - 0 - marginx: 0 - marginy: 0 - imgWidth: 512 - imgHeight: 512 - width: 512 - height: 512 - offx: 0 - offy: 0 - origname: i0abe6432-3fe2-4155-a39c-f054bb898c6e.png - source: data/particles/Light_02.png - shape: rect - left: 0 - right: 512 - top: 0 - bottom: 512 - uid: 0abe6432-3fe2-4155-a39c-f054bb898c6e - padding: 1 - type: texture - type: folder uid: 7TbdnGb6gHjW94 colorClass: act diff --git a/src/pug/index.pug b/src/pug/index.pug index d98fe0128..156c681ad 100644 --- a/src/pug/index.pug +++ b/src/pug/index.pug @@ -88,6 +88,58 @@ html window.PIXI = require('pixi.js'); window.PIXI.sound = require('@pixi/sound').sound; window.PIXI.sound.filters = require('@pixi/sound').filters; + window.PIXI.particles = require('@pixi/particle-emitter'); + // ⚠️⚠️⚠️ BAND-AIDS START + + // @see https://github.com/pixijs/particle-emitter/issues/209 + { + const hexToRGB = (color, output) => { + if (!output) { + output = {}; + } + if (color.charAt(0) === '#') { + color = color.substr(1); + } else if (color.indexOf('0x') === 0) { + color = color.substr(2); + } + let alpha; + if (color.length === 8) { + alpha = color.substr(0, 2); + color = color.substr(2); + } + output.r = parseInt(color.substr(0, 2), 16); // Red + output.g = parseInt(color.substr(2, 2), 16); // Green + output.b = parseInt(color.substr(4, 2), 16); // Blue + if (alpha) { + output.a = parseInt(alpha, 16); + } + return output; + }; + /* eslint-disable id-blacklist */ + PIXI.particles.PropertyNode.createList = (data) => { + const array = data.list; + let node; + // eslint-disable-next-line prefer-destructuring + const {value, time} = array[0]; + // eslint-disable-next-line max-len + const first = node = new PIXI.particles.PropertyNode(typeof value === 'string' ? hexToRGB(value) : value, time, data.ease); + // only set up subsequent nodes if there are a bunch of them + if (array.length > 1) { + for (let i = 1; i < array.length; ++i) { + const {value, time} = array[i]; + node.next = new PIXI.particles.PropertyNode(typeof value === 'string' ? hexToRGB(value) : value, time); + node = node.next; + } + } + first.isStepped = Boolean(data.isStepped); + return first; + }; + /* eslint-enable id-blacklist */ + } + // @see https://github.com/pixijs/pixijs/issues/9495 + window.PIXI.particles.Particle.prototype.isInteractive = () => false; + + // ⚠️⚠️⚠️ BAND-AIDS END riot.mount('*'); setTimeout(() => { document.getElementById('theLoadingScreen').remove(); diff --git a/src/riotTags/editors/emitter-tandem-editor/emitter-tandem-editor.tag b/src/riotTags/editors/emitter-tandem-editor/emitter-tandem-editor.tag index 77d067785..0afe94aa3 100644 --- a/src/riotTags/editors/emitter-tandem-editor/emitter-tandem-editor.tag +++ b/src/riotTags/editors/emitter-tandem-editor/emitter-tandem-editor.tag @@ -61,9 +61,7 @@ emitter-tandem-editor.aPanel.aView.flexrow(class="{opts.class}") script. /* global net */ const brehautColor = net.brehaut.Color; - const PIXI = require('pixi.js'); - const particles = require('@pixi/particle-emitter'); - particles.Particle.prototype.isInteractive = () => false; + const {particles} = PIXI; this.namespace = 'particleEmitters'; this.mixin(require('./data/node_requires/riotMixins/voc').default);