Esempio n. 1
0
 public static void collideRegularAndRepelent(RegularBall b1, RepelentBall b2)
 {
     b2.color     = b1.color;
     b1.speed.dx *= (-1);
     b1.speed.dy *= (-1);
 }
Esempio n. 2
0
 public static void collideRegularAndMonster(RegularBall b1, MonsterBall b2)
 {
     b2.radius += b1.radius;
     Engine.balls.Remove(b1);
 }