Home | History | Annotate | Download | only in particles
      1 {
      2    "MaxCount": 32,
      3    "Duration": 1,
      4    "Rate": 8,
      5    "Life": {
      6       "Input": {
      7          "Source": "Age",
      8          "TileMode": "Repeat",
      9          "Left": 0,
     10          "Right": 1
     11       },
     12       "XValues": [],
     13       "Segments": [
     14          {
     15             "Type": "Constant",
     16             "Ranged": true,
     17             "Bidirectional": false,
     18             "A0": 1,
     19             "A1": 3
     20          }
     21       ]
     22    },
     23    "Drawable": {
     24       "Type": "SkImageDrawable",
     25       "Path": "resources/images/explosion_sprites.png",
     26       "Columns": 4,
     27       "Rows": 4
     28    },
     29    "Spawn": [
     30       {
     31          "Type": "SkPositionInCircleAffector",
     32          "Enabled": true,
     33          "SetHeading": true,
     34          "X": {
     35             "Input": {
     36                "Source": "Age",
     37                "TileMode": "Repeat",
     38                "Left": 0,
     39                "Right": 1
     40             },
     41             "XValues": [],
     42             "Segments": [
     43                {
     44                   "Type": "Constant",
     45                   "Ranged": false,
     46                   "Bidirectional": false,
     47                   "A0": 0
     48                }
     49             ]
     50          },
     51          "Y": {
     52             "Input": {
     53                "Source": "Age",
     54                "TileMode": "Repeat",
     55                "Left": 0,
     56                "Right": 1
     57             },
     58             "XValues": [],
     59             "Segments": [
     60                {
     61                   "Type": "Constant",
     62                   "Ranged": false,
     63                   "Bidirectional": false,
     64                   "A0": 0
     65                }
     66             ]
     67          },
     68          "Radius": {
     69             "Input": {
     70                "Source": "Age",
     71                "TileMode": "Repeat",
     72                "Left": 0,
     73                "Right": 1
     74             },
     75             "XValues": [],
     76             "Segments": [
     77                {
     78                   "Type": "Constant",
     79                   "Ranged": false,
     80                   "Bidirectional": false,
     81                   "A0": 60
     82                }
     83             ]
     84          }
     85       }
     86    ],
     87    "Update": [
     88       {
     89          "Type": "SkPointForceAffector",
     90          "Enabled": true,
     91          "Point": { "x": 200, "y": 200 },
     92          "Constant": 0,
     93          "InvSquare": -50
     94       },
     95       {
     96          "Type": "SkFrameAffector",
     97          "Enabled": true,
     98          "Curve": {
     99             "Input": {
    100                "Source": "Age",
    101                "TileMode": "Repeat",
    102                "Left": 0,
    103                "Right": 1
    104             },
    105             "XValues": [],
    106             "Segments": [
    107                {
    108                   "Type": "Linear",
    109                   "Ranged": false,
    110                   "Bidirectional": false,
    111                   "A0": 0,
    112                   "D0": 1
    113                }
    114             ]
    115          }
    116       }
    117    ]
    118 }