public bool Verification_Limite_Y(Carre caca) { List <Vector2> prout = caca.List_point_rectangle(caca._rotationAngle, caca._taille, caca._position); foreach (Vector2 jambon in prout) { if ((jambon.Y > height_jeu + debut_height) || (jambon.Y < debut_height)) { return(true); } } return(false); }
public bool Verification_Limite_X(Carre caca) { List <Vector2> prout = caca.List_point_rectangle(caca._rotationAngle, caca._taille, caca._position); foreach (Vector2 jambon in prout) { if ((jambon.X > width) || (jambon.X < 0)) { return(true); } } return(false); }