mirror of
https://github.com/ppy/osu.git
synced 2025-03-24 09:37:19 +08:00
Remove StartScale
from ParticleSpewer
particles
This commit is contained in:
parent
db662f8c5c
commit
6d68da8ff0
@ -184,7 +184,6 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
p.StartPosition = positionInParent;
|
||||
p.Duration = RNG.NextSingle(particle_lifetime_min, particle_lifetime_max);
|
||||
p.AngularVelocity = RNG.NextSingle(-3f, 3f);
|
||||
p.StartScale = RNG.NextSingle(0.5f, 1f);
|
||||
p.EndScale = RNG.NextSingle(2f);
|
||||
|
||||
switch (Direction)
|
||||
|
@ -40,7 +40,6 @@ namespace osu.Game.Graphics.Particles
|
||||
p.Duration = RNG.NextSingle((float)particle_lifetime * 0.8f, (float)particle_lifetime);
|
||||
p.Velocity = direction * new Vector2(RNG.NextSingle(velocity_min, velocity_max));
|
||||
p.AngularVelocity = RNG.NextSingle(-angular_velocity, angular_velocity);
|
||||
p.StartScale = 1f;
|
||||
p.EndScale = 2f;
|
||||
|
||||
return p;
|
||||
|
@ -178,12 +178,11 @@ namespace osu.Game.Graphics.Particles
|
||||
public Vector2 Velocity;
|
||||
public float Duration;
|
||||
public float AngularVelocity;
|
||||
public float StartScale;
|
||||
public float EndScale;
|
||||
|
||||
public float AlphaAtTime(float timeSinceStart) => 1 - progressAtTime(timeSinceStart);
|
||||
|
||||
public float ScaleAtTime(float timeSinceStart) => StartScale + (EndScale - StartScale) * progressAtTime(timeSinceStart);
|
||||
public float ScaleAtTime(float timeSinceStart) => 1 + (EndScale - 1) * progressAtTime(timeSinceStart);
|
||||
|
||||
public float AngleAtTime(float timeSinceStart) => AngularVelocity / 1000 * timeSinceStart;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user