コード例 #1
0
ファイル: SmallBullet.cs プロジェクト: pquinn/time-sink
        public override bool OnCollidedWith(Fixture f1, UserControlledCharacter character, Fixture f2, FarseerPhysics.Dynamics.Contacts.Contact contact)
        {
            if (!character.Invulnerable)
            {
                character.TakeDamage(25, true, true);
                Dead = true;
            }

            return false;
        }
コード例 #2
0
ファイル: Enemy.cs プロジェクト: pquinn/time-sink
 protected virtual bool OnCollidedWith(Fixture f, UserControlledCharacter c, Fixture cf, Contact info)
 {
     c.TakeDamage(25, true, true);
     return true;
 }
コード例 #3
0
ファイル: NormalCentipede.cs プロジェクト: pquinn/time-sink
 bool OnCollidedWith(Fixture f, UserControlledCharacter c, Fixture cf, Contact info)
 {
     if (!c.Invulnerable)
     {
         c.TakeDamage(10, true, true);
     }
     return true;
 }
コード例 #4
0
ファイル: LargeBullet.cs プロジェクト: pquinn/time-sink
        public virtual bool OnCollidedWith(Fixture f1, UserControlledCharacter character, Fixture f2, Contact contact)
        {
            if (!character.Invulnerable)
            {
                character.TakeDamage(30, true, true);
            }

            return false;
        }