Beispiel #1
0
 public Hitsparks(HitSpark type)
 {
     this.type = type;
     animator  = new SpriteAnimator <HitSpark>(new Vector2(30, 30));
 }
Beispiel #2
0
 public ObjectPool(HitSpark type, ContentManager content)
 {
     objects      = new List <Hitsparks>();
     this.type    = type;
     this.content = content;
 }
Beispiel #3
0
 public Hitbox(int damage, int chipDamage, int hitstun, int blockstun, Vector2 pushback,
               Rectangle hitboxBounds, Vector2 positionOffset, CancelState cancelStrength, HitSpark attackStrength, AttackProperty attackProperty = AttackProperty.Hit, int pushbackDuration = 5, int hitStop = -1, bool ignorePushback = false, ThrowType throwType = ThrowType.none)
 {
     this.damage           = damage;
     this.chipDamage       = chipDamage;
     this.hitstun          = hitstun;
     this.blockstun        = blockstun;
     this.pushbackDuration = pushbackDuration;
     this.pushback         = pushback;
     this.hitboxBounds     = hitboxBounds;
     this.positionOffset   = positionOffset;
     this.attackProperty   = attackProperty;
     this.cancelStrength   = cancelStrength;
     this.attackStrength   = attackStrength;
     this.ignorePushback   = ignorePushback;
     this.throwType        = throwType;
     moveMasterID          = MasterObjectContainer.GetMoveMasterID();
     moveCurrentUseID      = 0;
     if (hitStop == -1)
     {
         if (attackStrength == HitSpark.light)
         {
             this.hitStop = 5;
         }
         else if (attackStrength == HitSpark.medium)
         {
             this.hitStop = 7;
         }
         else if (attackStrength == HitSpark.heavy)
         {
             this.hitStop = 9;
         }
         else
         {
             this.hitStop = 11;
         }
     }
     else
     {
         this.hitStop = hitStop;
     }
 }