コード例 #1
0
ファイル: Sword.cs プロジェクト: GarethIW/Fodder
        public override void Attack(Dude targetDude)
        {
            GameSession.Instance.ParticleController.AddGSW(targetDude.HitPosition, (new Vector2(5, 0) * Owner.PathDirection), Owner.IsShielded);
            targetDude.Hit(20);

            AudioController.PlaySFX("sword", (GameSession.Instance.Map.Zoom * 1.5f), ((float)GameSession.Instance.DudeController.Rand.NextDouble() / 3f) + 0.4f, ((2f / GameSession.Instance.Viewport.Width) * Owner._screenRelativePosition.X) - 1f);

            base.Attack(targetDude);
        }