Skip to content

Commit

Permalink
New example, load by string
Browse files Browse the repository at this point in the history
  • Loading branch information
mmbelkiman committed Mar 11, 2019
1 parent d2f6145 commit 07a0e75
Show file tree
Hide file tree
Showing 7 changed files with 289 additions and 85 deletions.
7 changes: 5 additions & 2 deletions Demo/Content/Content.mgcb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
/processorParam:TextureFormat=Color
/build:heart.png

#begin heart.png
#begin star.png
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
Expand All @@ -47,8 +47,11 @@
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:heart.png
/build:star.png

#begin testParticle.ptc
/copy:testParticle.ptc

#begin testParticle2.ptc
/copy:testParticle2.ptc

Binary file added Demo/Content/star.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
161 changes: 161 additions & 0 deletions Demo/Content/testParticle2.ptc
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
{
"Name": null,
"Emitters": {
"principal": {
"SpriteEffects": 0,
"LayerDepth": 0.0,
"TexturePath": "star.xnb",
"HasExpired": false,
"Loop": true,
"ForceLoop": true,
"Capacity": 10,
"Term": "00:00:01",
"ActiveParticles": 10,
"BlendMode": 0,
"TextureKey": null,
"ReclaimFrequency": 1.0,
"Offset": {
"X": 0.0,
"Y": 0.0,
"Length": 0.0,
"LengthSq": 0.0,
"Axis": {
"X": "NaN",
"Y": "NaN",
"Angle": "NaN"
}
},
"Modifiers": {
"OpacityFastFade": { "Name": "OpacityFastFadeModifier" },
"Rotation": {
"Name": "RotationModifier",
"RotationRate": 3.0
},
"ScaleInterpolator2": {
"Name": "ScaleInterpolator2",
"InitialScale": {
"X": 20.0,
"Y": 20.0,
"Length": 28.2842712,
"LengthSq": 800.0,
"Axis": {
"X": 0.707106769,
"Y": 0.707106769,
"Angle": 0.7853982
}
},
"FinalScale": {
"X": 40.0,
"Y": 40.0,
"Length": 56.5685425,
"LengthSq": 3200.0,
"Axis": {
"X": 0.707106769,
"Y": 0.707106769,
"Angle": 0.7853982
}
}
},
"Drag": {
"Name": "DragModifier",
"DragCoefficient": 1.5,
"Density": 80.1
},
"RectLoopContainerModifier": {
"Name": "RectLoopContainerModifier",
"Width": 100,
"Height": 100
}
},
"ModifierExecutionStrategy": { "Name": "Serial" },
"Profile": {
"Name": "CircleProfile",
"Axis": {
"X": 0.0,
"Y": -1.0,
"Angle": -1.57079637
},
"Length": 100.0,
"Direction": {
"X": 0.0,
"Y": -1.0,
"Angle": -1.57079637
},
"Spread": 100.0,
"Radius": 100.0,
"Radiate": 1,
"Width": 100.0,
"Height": 100.0
},
"Parameters": {
"Quantity": {
"Min": 1,
"Max": 1,
"Diameter": 0,
"Centre": 1,
"Radius": 0,
"IsDegenerate": true,
"IsProper": false
},
"Speed": {
"Min": 1.1,
"Max": 1.1,
"Diameter": 0.0,
"Centre": 1.1,
"Radius": 0.0,
"IsDegenerate": true,
"IsProper": false
},
"Colour": {
"Min": {
"H": 0.0,
"S": 0.29,
"L": 1.0
},
"Max": {
"H": 0.0,
"S": 0.29,
"L": 1.0
}
},
"Opacity": {
"Min": 0.0,
"Max": 0.0,
"Diameter": 0.0,
"Centre": 1.0,
"Radius": 0.0,
"IsDegenerate": true,
"IsProper": false
},
"Scale": {
"Min": 225.0,
"Max": 225.0,
"Diameter": 0.0,
"Centre": 225.0,
"Radius": 0.0,
"IsDegenerate": true,
"IsProper": false
},
"Rotation": {
"Min": 0.0,
"Max": 0.0,
"Diameter": 0.0,
"Centre": 0.0,
"Radius": 0.0,
"IsDegenerate": true,
"IsProper": false
},
"Mass": {
"Min": 1.1,
"Max": 1.1,
"Diameter": 0.0,
"Centre": 1.1,
"Radius": 0.0,
"IsDegenerate": true,
"IsProper": false
}
}
}
},
"ActiveParticles": 10
}
Loading

0 comments on commit 07a0e75

Please sign in to comment.