예제 #1
0
        public void ResolveCollisionWithOtherEntity(IDungeonEntityUpdatable other)
        {
            if (other is PlayerEntity)
            {
                return;
            }

            if (other is DungeonEntity)
            {
                myPlayer.player.gravity    = 0;
                myPlayer.player.fallStart  = 1;
                myPlayer.player.fallStart2 = 1;
            }

            player.position -= pendingVelocity;
        }
예제 #2
0
 public void ResolveCollisionWithOtherEntity(IDungeonEntityUpdatable other)
 {
 }
예제 #3
0
 public abstract bool CollideWithOther(IDungeonEntityUpdatable other);
예제 #4
0
 public override bool CollideWithOther(IDungeonEntityUpdatable other)
 {
     return(other.EntityHitbox.HitboxShapes.IntersectWith(other.EntityHitbox.HitboxShapes));
 }