Beispiel #1
0
 public Particle(Vector2 position, Velocity velocity, ColorRgba color, ColorRgba startingColor, ColorRgba endingColor, float size, float life)
 {
     Position      = new Position(position);
     Velocity      = velocity;
     Color         = color;
     StartingColor = startingColor;
     EndingColor   = endingColor;
     Size          = new Size(size, 0);
     Life          = new LifeSpan(life, life);
 }
Beispiel #2
0
 public Particle(Position position, Velocity velocity, ColorRgba color, ColorRgba startingColor, ColorRgba endingColor, Size size, LifeSpan life)
 {
     Position      = position;
     Velocity      = velocity;
     Color         = color;
     StartingColor = startingColor;
     EndingColor   = endingColor;
     Size          = size;
     Life          = life;
 }