diff --git a/assets/config.json b/assets/config.json index 0d41564..b083e4e 100755 --- a/assets/config.json +++ b/assets/config.json @@ -1,3 +1,3 @@ { - "effect": "effects/magic-stars.json" + "effect": "effects/confetti.json" } \ No newline at end of file diff --git a/assets/effects/O-func.json b/assets/effects/O-func.json index 0a4b40b..efb0329 100755 --- a/assets/effects/O-func.json +++ b/assets/effects/O-func.json @@ -8,7 +8,9 @@ "maxParticles": 300, "preloading": 100, + "texturePath": "textures/spark.png", + "textureSize": [ 10, 10 ], "hasInertion": "false", "gravity": [0, 0, 0], @@ -88,7 +90,7 @@ "scale": { - "value": [ 10, 10 ] + "value": 1 }, "color": diff --git a/assets/effects/S-func.json b/assets/effects/S-func.json index 02696c9..72d4afb 100755 --- a/assets/effects/S-func.json +++ b/assets/effects/S-func.json @@ -8,7 +8,9 @@ "maxParticles": 300, "preloading": 100, + "texturePath": "textures/spark.png", + "textureSize": [ 10, 10 ], "hasInertion": "false", "gravity": [0, 0, 0], @@ -80,7 +82,7 @@ "scale": { - "value": [ 10, 10 ] + "value": 1 }, "color": diff --git a/assets/effects/chaotic.json b/assets/effects/chaotic.json new file mode 100755 index 0000000..0fdf188 --- /dev/null +++ b/assets/effects/chaotic.json @@ -0,0 +1,116 @@ +{ + "emitters": + [ + { + "maxParticles": 300, + "preloading": 100, + + "texturePath": "textures/spark.png", + "textureSize": [ 10, 10 ], + + "hasInertion": "false", + "gravity": [0, 0, 0], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0, + "value": 0 + }, + { + "t": 1, + "value": 5 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 0, 360 ] + }, + + "lifeTime": + { + "value": 3 + }, + + "coords_system": "PARTICLE_EFFECT", + "offset_axis_system": "PARTICLE_EFFECT", + "coords_axis_system": "PARTICLE_BIRTH", + "rotation_system": "PARTICLE_EFFECT", + + "coords": + { + "interpolation": "CUBIC_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0] + }, + { + "t": 3.000, + "value": [ 500, 0, 0] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 10, 0, 0] + }, + { + "t": 0.025, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.125, + "value": [ 0, 10, 0] + }, + { + "t": 0.25, + "value": [ -10, 0, 0] + }, + { + "t": 0.375, + "value": [ 0, -10, 0] + }, + { + "t": 0.475, + "value": [ 9.5, -3, 0] + }, + { + "t": 0.5, + "value": [ 10, 0, 0] + } + ] + }, + + "rotation": + { + "value": [ 0, 0, 0 ] + }, + + "scale": + { + "value": 1 + }, + + "color": + { + "value": [ 1, 1, 0, 1 ] + } + } + ] +} \ No newline at end of file diff --git a/assets/effects/confetti.json b/assets/effects/confetti.json new file mode 100755 index 0000000..495f8a5 --- /dev/null +++ b/assets/effects/confetti.json @@ -0,0 +1,861 @@ +{ + "emitters": + [ + { + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/star-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 15 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 0] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_BIRTH", + "rotation_system": "PARTICLE_ITSELF", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 100, 0, 0 ], + "max": [ 200, 0, 0 ] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timeline": + [ + { + "t": 0.00, + "value": [ 10, 0, 0] + }, + { + "t": 0.05, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.25, + "value": [ 0, 10, 0] + }, + { + "t": 0.5, + "value": [ -10, 0, 0] + }, + { + "t": 0.75, + "value": [ 0, -10, 0] + }, + { + "t": 0.95, + "value": [ 9.5, -3, 0] + }, + { + "t": 1.0, + "value": [ 10, 0, 0] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 0, 1, 0, 1 ] + } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/rect-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 15 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 0] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_BIRTH", + "rotation_system": "PARTICLE_EFFECT", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 100, 0, 0 ], + "max": [ 200, 0, 0 ] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timeline": + [ + { + "t": 0.00, + "value": [ 10, 0, 0] + }, + { + "t": 0.05, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.25, + "value": [ 0, 10, 0] + }, + { + "t": 0.5, + "value": [ -10, 0, 0] + }, + { + "t": 0.75, + "value": [ 0, -10, 0] + }, + { + "t": 0.95, + "value": [ 9.5, -3, 0] + }, + { + "t": 1.0, + "value": [ 10, 0, 0] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 1, 0, 0, 1 ] + } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/circle-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 15 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 0] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_BIRTH", + "rotation_system": "PARTICLE_EFFECT", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 100, 0, 0 ], + "max": [ 200, 0, 0 ] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timeline": + [ + { + "t": 0.00, + "value": [ 10, 0, 0] + }, + { + "t": 0.05, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.25, + "value": [ 0, 10, 0] + }, + { + "t": 0.5, + "value": [ -10, 0, 0] + }, + { + "t": 0.75, + "value": [ 0, -10, 0] + }, + { + "t": 0.95, + "value": [ 9.5, -3, 0] + }, + { + "t": 1.0, + "value": [ 10, 0, 0] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 0, 0, 1, 1 ] + } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/star-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 15 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 0] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_BIRTH", + "rotation_system": "PARTICLE_EFFECT", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 100, 0, 0 ], + "max": [ 200, 0, 0 ] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timeline": + [ + { + "t": 0.00, + "value": [ 10, 0, 0] + }, + { + "t": 0.05, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.25, + "value": [ 0, 10, 0] + }, + { + "t": 0.5, + "value": [ -10, 0, 0] + }, + { + "t": 0.75, + "value": [ 0, -10, 0] + }, + { + "t": 0.95, + "value": [ 9.5, -3, 0] + }, + { + "t": 1.0, + "value": [ 10, 0, 0] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 1, 1, 0, 1 ] + } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/rect-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 15 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 0] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_BIRTH", + "rotation_system": "PARTICLE_EFFECT", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 100, 0, 0 ], + "max": [ 200, 0, 0 ] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timeline": + [ + { + "t": 0.00, + "value": [ 10, 0, 0] + }, + { + "t": 0.05, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.25, + "value": [ 0, 10, 0] + }, + { + "t": 0.5, + "value": [ -10, 0, 0] + }, + { + "t": 0.75, + "value": [ 0, -10, 0] + }, + { + "t": 0.95, + "value": [ 9.5, -3, 0] + }, + { + "t": 1.0, + "value": [ 10, 0, 0] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 0, 1, 1, 1 ] + } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/circle-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 15 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 0] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_BIRTH", + "rotation_system": "PARTICLE_EFFECT", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 100, 0, 0 ], + "max": [ 200, 0, 0 ] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timeline": + [ + { + "t": 0.00, + "value": [ 10, 0, 0] + }, + { + "t": 0.05, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.25, + "value": [ 0, 10, 0] + }, + { + "t": 0.5, + "value": [ -10, 0, 0] + }, + { + "t": 0.75, + "value": [ 0, -10, 0] + }, + { + "t": 0.95, + "value": [ 9.5, -3, 0] + }, + { + "t": 1.0, + "value": [ 10, 0, 0] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 1, 0, 1, 1 ] + } + } + ] +} \ No newline at end of file diff --git a/assets/effects/magic-stars.json b/assets/effects/magic-stars.json index be5416c..895dd21 100755 --- a/assets/effects/magic-stars.json +++ b/assets/effects/magic-stars.json @@ -1,13 +1,11 @@ { - "name": "Sparkler - бенгальский огонь", - "emitters": [ { - "name": "Magic Star", - "preloading": 20, + "texturePath": "textures/magic-star.png", + "textureSize": [ 22.625, 12.5 ], "hasInertion": "false", "gravity": [0, 0, 0], @@ -73,7 +71,7 @@ "timeline": [ { - "value": [ 22.625, 12.5 ] + "value": 1 } ] }, @@ -92,7 +90,9 @@ "maxParticles": 110, "preloading": 110, + "texturePath": "textures/spark-white.png", + "textureSize": [ 10, 10 ], "gravity": [0, -100, 0], @@ -153,7 +153,7 @@ "scale": { - "value": [ 10, 10 ] + "value": 1 }, "color": @@ -184,7 +184,9 @@ "maxParticles": 300, "preloading": 300, + "texturePath": "textures/spark-white.png", + "textureSize": [ 10, 10 ], "hasInertion": "true", "gravity": [0, -100, 0], @@ -246,7 +248,7 @@ "scale": { - "value": [ 10, 10 ] + "value": 1 }, "color": diff --git a/assets/effects/sine-comets.json b/assets/effects/sine-comets.json index 5892f56..9d504a5 100755 --- a/assets/effects/sine-comets.json +++ b/assets/effects/sine-comets.json @@ -8,7 +8,9 @@ "maxParticles": 300, "preloading": 100, + "texturePath": "textures/comet.png", + "textureSize": [ 20, 7.12 ], "hasInertion": "false", "gravity": [0, 0, 0], @@ -96,7 +98,7 @@ "scale": { - "value": [ 20, 7.12 ] + "value": 1 }, "color": diff --git a/assets/effects/sine-sparks.json b/assets/effects/sine-sparks.json index a4f7657..abdc99e 100755 --- a/assets/effects/sine-sparks.json +++ b/assets/effects/sine-sparks.json @@ -8,7 +8,9 @@ "maxParticles": 300, "preloading": 100, + "texturePath": "textures/spark.png", + "textureSize": [ 10, 10 ], "hasInertion": "false", "gravity": [0, 0, 0], @@ -96,7 +98,7 @@ "scale": { - "value": [ 10, 10 ] + "value": 1 }, "color": diff --git a/assets/effects/sparkler-looped.json b/assets/effects/sparkler-looped.json index 2096bf0..c32aa3c 100755 --- a/assets/effects/sparkler-looped.json +++ b/assets/effects/sparkler-looped.json @@ -8,7 +8,9 @@ "maxParticles": 2000, "preloading": 2000, + "texturePath": "textures/spark-white.png", + "textureSize": [ 10, 10 ], "hasInertion": "false", "gravity": [0, 0, 0], @@ -79,7 +81,7 @@ "scale": { - "value": [ 10, 10 ] + "value": 1 }, "color": diff --git a/assets/effects/sparkler.json b/assets/effects/sparkler.json index fefb11c..8ba67b7 100755 --- a/assets/effects/sparkler.json +++ b/assets/effects/sparkler.json @@ -6,9 +6,11 @@ { "name": "Spark", - "maxParticles": 1000, - "preloading": 1000, + "maxParticles": 1100, + "preloading": 1100, + "texturePath": "textures/spark-white.png", + "textureSize": [ 10, 10 ], "hasInertion": "false", "gravity": [0, 0, 0], @@ -27,7 +29,7 @@ }, { "t": 1.000, - "value": 200 + "value": 1000 } ] }, @@ -71,7 +73,7 @@ "scale": { - "value": [ 10, 10 ] + "value": 1 }, "color": diff --git a/assets/effects/test.json b/assets/effects/test.json index d7c8a00..34fc40e 100755 --- a/assets/effects/test.json +++ b/assets/effects/test.json @@ -1,15 +1,12 @@ { - "name": "Sparkler - бенгальский огонь", - "emitters": [ { - "name": "Magic Star", - "maxParticles": 10000, "preloading": 1000, "texturePath": "textures/star-white.png", + "textureSize": [ 5, 5 ], "gravity": [ 0, -100, 0 ], @@ -17,7 +14,18 @@ "spawnTotal": { - "value": 50 + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 5 + } + ] }, "spawnRange": @@ -31,9 +39,10 @@ "max": 10 }, - "coords_system": "PARTICLE_EFFECT", + "coords_system": "PARTICLE_BIRTH", "coords_axis_system": "PARTICLE_BIRTH", - "rotation_system": "PARTICLE_EFFECT", + "offset_axis_system": "PARTICLE_ITSELF", + "rotation_system": "PARTICLE_ITSELF", "coords": { @@ -47,7 +56,44 @@ { "t": 1.000, "min": [ 150, 0, 0 ], - "max": [ 150, 0, 0 ] + "max": [ 300, 0, 0 ] + } + ] + }, + + "offset": + { + "interpolation": "CUBIC_SPLINE", + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.00, + "value": [ 10, 0, 0] + }, + { + "t": 0.05, + "value": [ 9.5, 3, 0] + }, + { + "t": 0.25, + "value": [ 0, 10, 0] + }, + { + "t": 0.5, + "value": [ -10, 0, 0] + }, + { + "t": 0.75, + "value": [ 0, -10, 0] + }, + { + "t": 0.95, + "value": [ 9.5, -3, 0] + }, + { + "t": 1.0, + "value": [ 10, 0, 0] } ] }, @@ -80,7 +126,8 @@ "timeline": [ { - "value": [ 10, 10 ] + "min": 1, + "max": 2 } ] }, @@ -96,7 +143,8 @@ "maxParticles": 10000, "preloading": 1000, - "texturePath": "textures/circle-white.png", + "texturePath": "textures/rect-white.png", + "textureSize": [ 5, 5 ], "gravity": [ 0, -100, 0 ], @@ -104,7 +152,18 @@ "spawnTotal": { - "value": 50 + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 5 + } + ] }, "spawnRange": @@ -118,9 +177,10 @@ "max": 10 }, - "coords_system": "PARTICLE_EFFECT", + "coords_system": "PARTICLE_BIRTH", "coords_axis_system": "PARTICLE_BIRTH", - "rotation_system": "PARTICLE_EFFECT", + "offset_axis_system": "PARTICLE_ITSELF", + "rotation_system": "PARTICLE_ITSELF", "coords": { @@ -134,7 +194,7 @@ { "t": 1.000, "min": [ 150, 0, 0 ], - "max": [ 150, 0, 0 ] + "max": [ 300, 0, 0 ] } ] }, @@ -167,7 +227,8 @@ "timeline": [ { - "value": [ 10, 10 ] + "min": 1, + "max": 2 } ] }, @@ -183,7 +244,8 @@ "maxParticles": 10000, "preloading": 1000, - "texturePath": "textures/rect-white.png", + "texturePath": "textures/circle-white.png", + "textureSize": [ 5, 5 ], "gravity": [ 0, -100, 0 ], @@ -191,7 +253,18 @@ "spawnTotal": { - "value": 50 + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 5 + } + ] }, "spawnRange": @@ -205,9 +278,10 @@ "max": 10 }, - "coords_system": "PARTICLE_EFFECT", + "coords_system": "PARTICLE_BIRTH", "coords_axis_system": "PARTICLE_BIRTH", - "rotation_system": "PARTICLE_EFFECT", + "offset_axis_system": "PARTICLE_ITSELF", + "rotation_system": "PARTICLE_ITSELF", "coords": { @@ -221,7 +295,7 @@ { "t": 1.000, "min": [ 150, 0, 0 ], - "max": [ 150, 0, 0 ] + "max": [ 300, 0, 0 ] } ] }, @@ -254,7 +328,8 @@ "timeline": [ { - "value": [ 10, 10 ] + "min": 1, + "max": 2 } ] }, @@ -263,6 +338,309 @@ { "value": [ 0, 0, 1, 1 ] } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/star-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 5 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 180 ] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_ITSELF", + "rotation_system": "PARTICLE_ITSELF", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 150, 0, 0 ], + "max": [ 300, 0, 0 ] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 1, 1, 0, 1 ] + } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/rect-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 5 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 180 ] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_ITSELF", + "rotation_system": "PARTICLE_ITSELF", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 150, 0, 0 ], + "max": [ 300, 0, 0 ] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 0, 1, 1, 1 ] + } + }, + { + "name": "Magic Star", + + "maxParticles": 10000, + "preloading": 1000, + + "texturePath": "textures/circle-white.png", + "textureSize": [ 5, 5 ], + + "gravity": [ 0, -100, 0 ], + + "spawnRange_system": "PARTICLE_EFFECT", + + "spawnTotal": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": 0 + }, + { + "t": 1.000, + "value": 5 + } + ] + }, + + "spawnRange": + { + "value": [ 0, 0, 360, 180 ] + }, + + "lifeTime": + { + "min": 10, + "max": 10 + }, + + "coords_system": "PARTICLE_BIRTH", + "coords_axis_system": "PARTICLE_BIRTH", + "offset_axis_system": "PARTICLE_ITSELF", + "rotation_system": "PARTICLE_ITSELF", + + "coords": + { + "interpolation": "LINEAR_SPLINE", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 0, 0 ] + }, + { + "t": 1.000, + "min": [ 150, 0, 0 ], + "max": [ 300, 0, 0 ] + } + ] + }, + + "rotation": + { + "interpolation": "LINEAR_SPLINE", + "timeOffset": + { + "min": 0, + "max": 1 + }, + "timelineType": "LOOPED", + "timeline": + [ + { + "t": 0.000, + "value": [ 0, 45, 0 ] + }, + { + "t": 1.000, + "value": [ 360, 45, 0 ] + } + ] + }, + + "scale": + { + "interpolation": "DISCRETE", + "timeline": + [ + { + "min": 1, + "max": 2 + } + ] + }, + + "color": + { + "value": [ 1, 0, 1, 1 ] + } } ] } \ No newline at end of file diff --git a/assets/textures/circle-white.png b/assets/textures/circle-white.png index d3eb9a9..cdb82ad 100755 Binary files a/assets/textures/circle-white.png and b/assets/textures/circle-white.png differ