コード例 #1
0
        public override void AfterMoving()
        {
            // left shift old position
            int attackFrame = animationFrame - targetStartFrame;

            blurHelper.Update(projectile.Center, targetStartFrame != default && attackFrame > windupFrames);
            if (targetStartFrame != default && (animationFrame - targetStartFrame > framesToLiveAfterAttack ||
                                                Vector2.DistanceSquared(player.Center, projectile.Center) > 1300f * 1300f))
            {
                projectile.Kill();
            }
            scHelper.UpdateDrawers(false, drawFuncs);
        }
コード例 #2
0
 public override void AfterMoving()
 {
     base.AfterMoving();
     UpdateSmallStars();
     scHelper.UpdateDrawers(false, DrawSmallStars, DrawBigStars);
 }
コード例 #3
0
 public override void AfterMoving()
 {
     scHelper.UpdateDrawers(false, DrawVines, DrawBody, DrawFoliage);
 }