public ParticlePlumeEffect(ActiveObject bindToObject, TimeSpan duration, PlumeType type) { Type = type; LastTick = Game1.CurrentTime; Duration = duration; BindToObject = bindToObject; AddParticles(MAX_PARTICLES); }
public Particle(Vector2 position, float size, PlumeType type) { switch (type) { case PlumeType.Ice: Texture = IceTexture; break; case PlumeType.Fire: Texture = FireTexture; break; } position.Y -= 50; InitalPosition = position; Position = position; Width = size; Height = (size / Texture.Width) * Texture.Height; }