コード例 #1
0
        public void update(TrailElement p1)
        {
            prevPosition = position;
            position = p1.prevPosition;

            transparency -= 0.03f;
        }
コード例 #2
0
        public Trail(Texture2D image,Vector2 position)
        {
            particles = new TrailElement[16];
             int i = 0;
             while (i < 16)
            {
                particles[i] = new TrailElement(image, position);

                i++;
            }
              i = 0;
             while (i < 15)
             {

                 i++; particles[i].scale=1;
             }
        }