5c1f8eb094
Effects now have a duration, and can be played looped or one-shot. Added a second list of affectors that are applied at spawn vs. update. Effects grab and store the SkRandom at construction, so it no longer needs to be passed to update(). Bug: skia: Change-Id: Ib54d60466e162e4d4b70fa64c1215fc01680d47a Reviewed-on: https://skia-review.googlesource.com/c/191722 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Michael Ludwig <michaelludwig@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
51 lines
985 B
JSON
51 lines
985 B
JSON
{
|
|
"MaxCount": 4096,
|
|
"Rate": 90,
|
|
"Life": {
|
|
"min": 30,
|
|
"max": 30
|
|
},
|
|
"StartColor": [ 1, 0.999994, 0.99999, 1 ],
|
|
"EndColor": [ 0.99999, 0.999992, 1, 1 ],
|
|
"Size": {
|
|
"Ranged": false,
|
|
"A0": 2,
|
|
"B0": 2,
|
|
"C0": 2,
|
|
"D0": 2,
|
|
"A1": 1,
|
|
"B1": 1,
|
|
"C1": 1,
|
|
"D1": 1
|
|
},
|
|
"Velocity": {
|
|
"Angle": 1.5708,
|
|
"Spread": 6.28319,
|
|
"Strength": {
|
|
"min": 0,
|
|
"max": 0
|
|
},
|
|
"Bidirectional": false,
|
|
"Spin": {
|
|
"min": 0,
|
|
"max": 0
|
|
},
|
|
"BidirectionalSpin": false
|
|
},
|
|
"Image": "images/half-transparent-white-pixel.png",
|
|
"ImageCols": 1,
|
|
"ImageRows": 1,
|
|
"Emitter": {
|
|
"Type": "SkCircleEmitter",
|
|
"Center": { "x": 380.8, "y": 273.92 },
|
|
"Radius": 43
|
|
},
|
|
"Update": [
|
|
{
|
|
"Type": "SkPointForceAffector",
|
|
"Point": { "x": 375, "y": 273 },
|
|
"Constant": -10,
|
|
"InvSquare": 0
|
|
}
|
|
]
|
|
} |