2023-11-21 12:20:06 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <graph.h>
|
2023-12-07 14:32:42 +01:00
|
|
|
#include "../fichier.h/time.h"
|
|
|
|
#include "../fichier.h/terrain.h"
|
|
|
|
#include "../fichier.h/serpent.h"
|
2023-12-14 15:00:02 +01:00
|
|
|
#include "../fichier.h/main.h"
|
|
|
|
#include "../fichier.h/pastille.h"
|
2023-11-21 12:20:06 +01:00
|
|
|
|
2023-12-19 14:52:23 +01:00
|
|
|
void DessinerScene(int murx[30], int mury[30]){
|
2023-12-14 15:00:02 +01:00
|
|
|
int mur;
|
2023-12-19 14:52:23 +01:00
|
|
|
int i;
|
|
|
|
int fond;
|
2023-12-19 17:27:47 +01:00
|
|
|
/* snprintf(timer,6,"%02d:%02d", minute ,seconde);*/
|
2023-12-14 15:00:02 +01:00
|
|
|
ChoisirCouleurDessin(CouleurParComposante(91,222,122));
|
|
|
|
RemplirRectangle(20,20,1160,700);
|
|
|
|
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
|
|
|
|
fond = ChargerSprite("../img/fond.png");
|
|
|
|
mur = ChargerSprite("../img/mur.png");
|
|
|
|
srand(time(NULL));
|
|
|
|
for(i=0; i<30; i++){
|
|
|
|
murx[i] = ((rand() % (55)+1)*20);
|
|
|
|
mury[i] = ((rand() % (35)+1)*20);
|
|
|
|
AfficherSprite(mur, murx[i], mury[i]);
|
2023-11-27 17:19:03 +01:00
|
|
|
}
|
|
|
|
}
|