forked from Mirrors/openclonk
commit
765d9a24e9
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 2.0 KiB |
|
@ -1,3 +1,3 @@
|
|||
[Particle]
|
||||
Name=Confetti
|
||||
Face=0,0,128,128,-64,-64
|
||||
Face=0,0,10,10,-5,-5
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue