예제 #1
0
 public bool Collide(GenericSprite sprite, double hitbox)
 {
     return(CollideSystem.collide(position, size, sprite.position, hitbox));
 }
예제 #2
0
 public bool Collide(GenericSprite sprite)
 {
     return(CollideSystem.collide(sprite, this));
 }
예제 #3
0
 public static bool collide(GenericSprite s1, GenericSprite s2) => collide(s1.position, s1.size, s2.position, s2.size);