예제 #1
0
        public override bool Update(Dust dust)
        {
            dust.GetAlpha(new Color(255, 255, 255, dust.alpha));
            dust.frame    = new Rectangle(0, 0, 48, 48);
            dust.rotation = dust.velocity.ToRotation();
            dust.scale    = 1f;
            dust.alpha   += 5;
            float strength = (250f - dust.alpha) / 100f;

            Lighting.AddLight(dust.position, new Vector3(0.247f * strength, 0.686f * strength, 1f * strength));
            if (dust.alpha > 249)
            {
                dust.active = false;
            }
            return(false);
        }