20 lines
315 B
C
20 lines
315 B
C
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <graph.h>
|
||
|
#include <time.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
/*variable pomme*/
|
||
|
int p=0;
|
||
|
int pp=0;
|
||
|
int pomme, pommex[5], pommey[5];
|
||
|
int fond;
|
||
|
|
||
|
/*Apparition aléatoire des pommes*/
|
||
|
void Pomme(){
|
||
|
|
||
|
for (pp = 0; pp < 5; ++pp) {
|
||
|
AfficherSprite(pomme, pommex[pp], pommey[pp]);
|
||
|
}
|
||
|
|
||
|
}
|