SAE11_2023/SAE_semestre1/terrain.c

23 lines
669 B
C
Raw Normal View History

2023-11-21 12:20:06 +01:00
#include <stdlib.h>
#include <graph.h>
#include "time.h"
#include "terrain.h"
#include "serpent.h"
#include "main.h"
#include "Oeuf.h"
2023-11-21 12:20:06 +01:00
void DessinerScene(int murx[], int mury[], int minute, int seconde, char timer []){
int mur;
2023-12-19 14:52:23 +01:00
int i;
snprintf(timer,6,"%02d:%02d", minute ,seconde);
ChoisirCouleurDessin(CouleurParComposante(218,209,77));
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);
ChargerImage("../img/cactus.png", murx[i], mury[i],0,0, 20,20);
2023-11-27 17:19:03 +01:00
}
}