Spark & smoke particle effects when welding or cutting something. Closes #155.

This commit is contained in:
Joonas Rikkonen
2018-02-12 11:20:25 +02:00
parent 3cbff6bd7b
commit 43d6ee5e06
5 changed files with 276 additions and 41 deletions
@@ -119,7 +119,7 @@
velocitychange="0.0, 0.0">
<animatedsprite texture="Content/Particles/Smoke.png" sourcerect="0,0,4096,4096" columns="8" rows="8" origin="0.5,0.5"/>
</waterblood>
<bloodtrail
lifetime="0.5"
angularvelocitymin="0"
@@ -375,6 +375,68 @@
<sprite texture="Content/Particles/flames.png" sourcerect="0,0,128,64" origin="0.15,0.5"/>
</weld>
<weldspark
lifetime="1"
angularvelocitymin="0"
angularvelocitymax="0"
startrotationmin="0"
startrotationmax="360"
rotatetodirection="True"
drag="0"
waterdrag="0"
velocitychange="0,-5"
velocitychangewater="0,-5"
collisionradius="1"
collideswithwalls="False"
deleteoncollision="True"
friction="0.5"
restitution="0.5"
startsizemin="0.2,0.2"
startsizemax="0.5,0.2"
sizechangemin="-0.5,-0.5"
sizechangemax="-1,-1"
growtime="0.1"
startcolor="1,0.76,0.39,1"
startalpha="1"
colorchange="0,0,0,-0.3"
drawtarget="Both"
blendstate="Additive"
animduration="1"
loopanim="True">
<sprite texture="Content/Particles/explosion.png" sourcerect="128,0,128,64"/>
</weldspark>
<weldsmoke
lifetime="3"
angularvelocitymin="0"
angularvelocitymax="0"
startrotationmin="0"
startrotationmax="360"
rotatetodirection="False"
drag="0"
waterdrag="0"
velocitychange="0,0.2"
velocitychangewater="0,0.2"
collisionradius="1"
collideswithwalls="False"
deleteoncollision="False"
friction="0.5"
restitution="0.5"
startsizemin="0.1,0.1"
startsizemax="0.2,0.2"
sizechangemin="0.1,0.1"
sizechangemax="0.1,0.1"
growtime="0.1"
startcolor="1,1,1,1"
startalpha="1"
colorchange="-0.3,-0.3,-0.3,-0.2"
drawtarget="Both"
blendstate="AlphaBlend"
animduration="3"
loopanim="True">
<animatedsprite texture="Content/Particles/Smoke.png" sourcerect="0,0,4096,4096" columns="8" rows="8" origin="0.5,0.5"/>
</weldsmoke>
<plasma
startsizemin="0.9,0.9" startsizemax="1.1,1.1"
sizechange="-4.0,-0.5"
@@ -387,6 +449,68 @@
<sprite texture="Content/Particles/flames.png" sourcerect="0,64,128,64" origin="0.15,0.5"/>
</plasma>
<plasmaspark
lifetime="1"
angularvelocitymin="0"
angularvelocitymax="0"
startrotationmin="0"
startrotationmax="360"
rotatetodirection="True"
drag="0"
waterdrag="0"
velocitychange="0,-2"
velocitychangewater="0,-2"
collisionradius="1"
collideswithwalls="False"
deleteoncollision="True"
friction="0.5"
restitution="0.5"
startsizemin="0.2,0.2"
startsizemax="0.5,0.4"
sizechangemin="-0.5,-0.5"
sizechangemax="-1,-1"
growtime="0.1"
startcolor="0.1960784,1,1,1"
startalpha="1"
colorchange="2,-2,-3,-0.3"
drawtarget="Both"
blendstate="Additive"
animduration="1"
loopanim="True">
<sprite texture="Content/Particles/explosion.png" sourcerect="128,0,128,64"/>
</plasmaspark>
<plasmasmoke
lifetime="3"
angularvelocitymin="0"
angularvelocitymax="0"
startrotationmin="0"
startrotationmax="360"
rotatetodirection="False"
drag="0"
waterdrag="0"
velocitychange="0,0.2"
velocitychangewater="0,0.2"
collisionradius="1"
collideswithwalls="False"
deleteoncollision="False"
friction="0.5"
restitution="0.5"
startsizemin="0.1,0.1"
startsizemax="0.2,0.2"
sizechangemin="0.1,0.1"
sizechangemax="0.1,0.1"
growtime="0.1"
startcolor="1,1,1,1"
startalpha="1"
colorchange="-0.5,-0.5,-0.45,-0.2"
drawtarget="Both"
blendstate="AlphaBlend"
animduration="3"
loopanim="True">
<animatedsprite texture="Content/Particles/Smoke.png" sourcerect="0,0,4096,4096" columns="8" rows="8" origin="0.5,0.5"/>
</plasmasmoke>
<largeplasma
startsizemin="0.9,3.0" startsizemax="5.0,5.0"
sizechange="20.0,-0.5"
@@ -398,6 +522,37 @@
velocitychange="0.0, 0.0">
<sprite texture="Content/Particles/flames.png" sourcerect="0,64,128,64" origin="0.0,0.5"/>
</largeplasma>
<fleshsmoke
lifetime="3"
angularvelocitymin="0"
angularvelocitymax="0"
startrotationmin="0"
startrotationmax="360"
rotatetodirection="False"
drag="0"
waterdrag="0"
velocitychange="0,0.2"
velocitychangewater="0,0.2"
collisionradius="1"
collideswithwalls="False"
deleteoncollision="False"
friction="0.5"
restitution="0.5"
startsizemin="0.1,0.1"
startsizemax="0.2,0.2"
sizechangemin="0.1,0.1"
sizechangemax="0.1,0.1"
growtime="0.1"
startcolor="0.6,0.6,0.6,1"
startalpha="0.4"
colorchange="0,0,0,0"
drawtarget="Both"
blendstate="AlphaBlend"
animduration="3"
loopanim="True">
<animatedsprite texture="Content/Particles/Smoke.png" sourcerect="0,0,4096,4096" columns="8" rows="8" origin="0.5,0.5"/>
</fleshsmoke>
<extinguisher
startsizemin="1.2,1.2" startsizemax="1.5,1.5"
@@ -493,4 +648,5 @@
<sprite texture="Content/Particles/shrapnel.png" sourcerect="224,96,32,32"/>
</iceshards>
</prefabs>