From de80b3337db276c30531a8f4d0a46485818350db Mon Sep 17 00:00:00 2001 From: "antoine.perederii" Date: Mon, 15 May 2023 21:15:54 +0200 Subject: [PATCH] jsp --- Projet/Projet.ino | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Projet/Projet.ino b/Projet/Projet.ino index 3dde1dd..109eaa5 100644 --- a/Projet/Projet.ino +++ b/Projet/Projet.ino @@ -17,7 +17,7 @@ const unsigned int vitesseBoule = 8; // vitesse de déplacement de la boule unsigned int mode = 0; -const unsigned int yMax = 226, xMax = 307; +const unsigned int yMax = 226, xMax = 307; // gerer le bord du bandeau int chrono = 30000; bool time, start = false; @@ -71,8 +71,8 @@ void afficherPiece(unsigned int tab[5][2]) { } bool colisions(int xPiece, int yPiece) { - distance = sqrt((xBoule - xPiece)^^2 + (yBoule - yPiece)^^2); - if(distance == 0) return true; + //distance = sqrt((xBoule - xPiece)^^2 + (yBoule - yPiece)^^2); + //if(distance == 0) return true; return false; } @@ -83,6 +83,7 @@ void Gyroscope() { if(yBoule>yMax || yBoule<(rayonBoule+40) || xBoule>xMax || xBoule