Ejemplo n.º 1
0
        public ParticlePlumeEffect(ActiveObject bindToObject, TimeSpan duration, PlumeType type)
        {
            Type = type;
              LastTick = Game1.CurrentTime;
              Duration = duration;
              BindToObject = bindToObject;

              AddParticles(MAX_PARTICLES);
        }
Ejemplo n.º 2
0
            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;
            }