42 lines
924 B
C
42 lines
924 B
C
#ifndef FONCTION_H
|
|
#define FONCTION_H
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <graph.h>
|
|
|
|
extern int seconde, minute, seconde_actuel, old_seconde;
|
|
extern char timer[6];
|
|
extern unsigned long int suivant;
|
|
|
|
extern int serpent, tete_up, tete_down, tete_right, tete_left;
|
|
extern int pos_x[2400], pos_y[2400], old_x[2400], old_y[2400];
|
|
|
|
extern int pomme, pommex[5], pommey[5];
|
|
extern int fond, Nbr;
|
|
extern char score[4];
|
|
|
|
extern int go_on;
|
|
extern int go_menu;
|
|
extern int pause;
|
|
extern int imageMenu;
|
|
|
|
void Pomme();
|
|
|
|
int Controle(int direction);
|
|
void Serpent(int direction, int segment);
|
|
void Update_Serpent(int direction, int segment);
|
|
long int Update_Vitesse(long int vitesse);
|
|
int Update_Segment(int segment);
|
|
|
|
void Terrain();
|
|
void Timer();
|
|
void Update_Timer();
|
|
void DessinerScene();
|
|
void Score(int segment);
|
|
void Collision(int segment);
|
|
|
|
void MenuDeFin();
|
|
void MenuDebut();
|
|
void Attendre(long int microsecondes);
|
|
|
|
#endif |