2023-11-21 12:20:06 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <graph.h>
|
2023-12-21 21:45:49 +01:00
|
|
|
#include "time.h"
|
|
|
|
#include "terrain.h"
|
|
|
|
#include "serpent.h"
|
|
|
|
#include "main.h"
|
|
|
|
#include "Oeuf.h"
|
2023-11-21 12:20:06 +01:00
|
|
|
|
2023-12-20 21:26:34 +01:00
|
|
|
void DessinerScene(int murx[], int mury[], int minute, int seconde, char timer []){
|
2023-12-14 15:00:02 +01:00
|
|
|
int mur;
|
2023-12-19 14:52:23 +01:00
|
|
|
int i;
|
2023-12-20 21:26:34 +01:00
|
|
|
snprintf(timer,6,"%02d:%02d", minute ,seconde);
|
|
|
|
ChoisirCouleurDessin(CouleurParComposante(218,209,77));
|
2023-12-14 15:00:02 +01:00
|
|
|
RemplirRectangle(20,20,1160,700);
|
|
|
|
ChoisirCouleurDessin(CouleurParComposante(255,255,255));
|
|
|
|
srand(time(NULL));
|
|
|
|
for(i=0; i<30; i++){
|
|
|
|
murx[i] = ((rand() % (55)+1)*20);
|
|
|
|
mury[i] = ((rand() % (35)+1)*20);
|
2023-12-20 21:26:34 +01:00
|
|
|
ChargerImage("../img/cactus.png", murx[i], mury[i],0,0, 20,20);
|
2023-11-27 17:19:03 +01:00
|
|
|
}
|
|
|
|
}
|