better confetti for Boomshire

master
Philip Holzmann 2019-03-02 09:29:30 +01:00
parent c9ee2c3eab
commit a844b6fe5b
3 changed files with 17 additions and 10 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1,3 +1,3 @@
[Particle]
Name=Confetti
Face=0,0,128,128,-64,-64
Face=0,0,10,10,-5,-5

View File

@ -46,16 +46,23 @@ public func DoTheConfetti()
{
this.confetti =
{
CollisionVertex = 500,
R = PV_Cos(PV_Random(0, 360, 0, 3), 127, 128),
G = PV_Cos(PV_Random(120, 480, 0, 3), 127, 128),
B = PV_Cos(PV_Random(240, 600, 0, 3), 127, 128),
Phase = PV_Step(1, PV_Random(0, 7), PV_Random(1, 3)),
DampingX = 900,
DampingY = 900,
ForceY = PV_Gravity(500),
Size = PV_Random(1, 4),
Rotation = PV_Random(0, 359),
Alpha = PV_KeyFrames(0,
0, 255,
900, 255,
1000, 0), // fade out at end only
OnCollision = PC_Stop(),
ForceX = PV_Random(-5, 5, 10),
ForceY = PV_Gravity(100),
Size = 1,
R = PV_Random(100,255),
G = PV_Random(100,255),
B = PV_Random(100,255),
DampingX = 900, DampingY = 900
CollisionDensity = 25, // also collide with water
CollisionVertex = 0,
};
}
CreateParticle("Confetti", PV_Random(-5, 5), PV_Random(0, 2), PV_Random(-30, 30), PV_Random(-80,-20), PV_Random(100, 150), this.confetti, 15);
CreateParticle("Confetti", PV_Random(-5, 5), PV_Random(0, 2), PV_Random(-30, 30), PV_Random(-80,-20), PV_Random(40, 80), this.confetti, 15);
}