Exemplo n.º 1
0
    protected override void GlobCollision(Glob_Base other)
    {
        other.GetHurt(5);

        if (Base.Physics.hspeed > 0)
          other.Physics.hspeed += 0.75f;
        else
          other.Physics.hspeed -= 0.75f;

        Base.DestroySelf();
    }
Exemplo n.º 2
0
    protected override void GlobCollision(Glob_Base other)
    {
        if (other.Sprite.IsPlaying("glob_die"))
          return;

        if (GroundAttackSuccess(other)) {
          other.GetHurt();
          if (Base.Physics.hspeed > 0)
        other.Physics.hspeed = 4;
          else
        other.Physics.hspeed = -4;

          BounceOffEnemy(6, Kat.Is("Kicking"));
        }

        else if (Kat.Is("GroundPounding")) {
          other.GetHurt();

          other.Physics.vspeed = -2;
          if (other.Sprite.FacingLeft)
        other.Physics.hspeed = 2;
          else
        other.Physics.hspeed = -2;

          BounceOffEnemy(8, false);
          Kat.Physics.hspeed = 0;
        }

        else if (Kat.Is("Uppercutting")) {
          other.GetHurt();

          if (Kat.x > other.x)
        other.Physics.hspeed = -2;
          else
        other.Physics.hspeed = 2;

          BounceOffEnemy(12, false);
        }

        else if (!other.hurt && !Kat.Is("Invincible") && !Kat.Is("Hurt"))
          Kat.State("Hurt", new object[] { other.x > Kat.x ? -5 : 5 });
    }