diff --git a/JEUX_SERPENT/Jeux b/JEUX_SERPENT/Jeux index c2debec..9b6ebcc 100755 Binary files a/JEUX_SERPENT/Jeux and b/JEUX_SERPENT/Jeux differ diff --git a/JEUX_SERPENT/scene.c b/JEUX_SERPENT/scene.c index 25c1bc8..511bed9 100644 --- a/JEUX_SERPENT/scene.c +++ b/JEUX_SERPENT/scene.c @@ -33,13 +33,12 @@ void DessinerScene(){ pomme=ChargerSprite("IMG/pomme.png"); for (p = 0; p < 5; p++) { pommex[p] = ((rand() % (58)+1)*20); - pommey[p] = ((rand() % (35)+1)*20); + pommey[p] = ((rand() % (34)+1)*20); AfficherSprite(pomme, pommex[p], pommey[p]); } } /*Apparition aléatoire des pommes*/ void Pomme(){ - for (pp = 0; pp < 5; ++pp) { AfficherSprite(pomme, pommex[pp], pommey[pp]); } diff --git a/JEUX_SERPENT/serpent.c b/JEUX_SERPENT/serpent.c index 7c45c61..8cf65c4 100644 --- a/JEUX_SERPENT/serpent.c +++ b/JEUX_SERPENT/serpent.c @@ -51,7 +51,7 @@ void Serpent(){ if(pommex[p]==pos_x[0] && pommey[p]==pos_y[0]){ segment+=2; pommex[p] = ((rand() % (58)+1)*20); - pommey[p] = ((rand() % (35)+1)*20); + pommey[p] = ((rand() % (34)+1)*20); } }