示例#1
0
文件: Strike.cs 项目: MyEyes/Igorr
 public override Attack GetAttack(Player owner,Vector2 dir, int DmgBonus, int info)
 {
     Attack att = null;
     Rectangle startRect = owner.Rect;
     startRect.Height -= 4;
     startRect.Y += 3;
     startRect.X += (int)(dir.X*8);
     att = new Attack(owner.map, 15, startRect, new Vector2(owner.LastSpeed.X, 0) + 200 * dir, 100, owner.ID, owner.GroupID, 1, owner.map.ObjectManager.getID());
     att.HitOnce = true;
     owner.Attack(0.3f);
     return att;
 }
示例#2
0
 public override Attack GetAttack(Player owner,Vector2 dir,int DmgBonus, int info)
 {
     Attack att = null;
     Rectangle startRect;
     startRect = owner.Rect;
     startRect.Height = 6;
     startRect.Width = 6;
     startRect.X += 5;
     startRect.Y += 3;
     //startRect.X += (int)(dir.X);
     att = new SlimeShot(owner.map, 0, startRect, dir, 1500, owner.ID, owner.GroupID, owner.map.ObjectManager.getID());
     att.HitOnce = true;
     att.Penetrates = false;
     owner.Attack(1f);
     return att;
 }