Ejemplo n.º 1
0
 public static void AddEmitter(Vector2 SecPerSpawn, Vector2 SpawnDirection, Vector2 SpawnNoiseAngle, Vector2 StartLife, Vector2 StartScale,
            Vector2 EndScale, Color StartColor1, Color StartColor2, Color EndColor1, Color EndColor2, Vector2 StartSpeed,
            Vector2 EndSpeed, int Budget, Vector2 RelPosition, Texture2D ParticleSprite, float InitialLife)
 {
     Emitter emitter = new Emitter(SecPerSpawn, SpawnDirection, SpawnNoiseAngle,
                                 StartLife, StartScale, EndScale, StartColor1,
                                 StartColor2, EndColor1, EndColor2, StartSpeed,
                                 EndSpeed, Budget, RelPosition, ParticleSprite, random, InitialLife);
     EmitterList.Add(emitter);
 }
Ejemplo n.º 2
0
 public Particle(Vector2 Position, Vector2 StartDirection, Vector2 EndDirection, float StartingLife, float ScaleBegin, float ScaleEnd, Color StartColor, Color EndColor, Emitter Yourself)
 {
     this.Position = Position;
     this.StartDirection = StartDirection;
     this.EndDirection = EndDirection;
     this.StartingLife = StartingLife;
     this.LifeLeft = StartingLife;
     this.ScaleBegin = ScaleBegin;
     this.ScaleEnd = ScaleEnd;
     this.StartColor = StartColor;
     this.EndColor = EndColor;
     this.Parent = Yourself;
 }