2023-12-07 14:02:18 +01:00
|
|
|
#ifndef FONCTION_H
|
|
|
|
#define FONCTION_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <graph.h>
|
2023-12-17 12:58:38 +01:00
|
|
|
|
2023-12-07 14:02:18 +01:00
|
|
|
extern int seconde, minute, seconde_actuel, old_seconde;
|
|
|
|
extern char timer[6];
|
|
|
|
extern unsigned long int suivant;
|
|
|
|
|
2023-12-18 13:36:17 +01:00
|
|
|
extern int serpent, tete_up, tete_down, tete_right, tete_left;
|
2023-12-18 17:05:44 +01:00
|
|
|
extern int direction,segment;
|
2023-12-10 12:27:36 +01:00
|
|
|
extern int pos_x[2400], pos_y[2400], old_x[2400], old_y[2400];
|
2023-12-11 14:42:47 +01:00
|
|
|
extern long int vitesse;
|
2023-12-07 14:02:18 +01:00
|
|
|
|
2023-12-18 13:36:17 +01:00
|
|
|
extern int pomme, pommex[5], pommey[5];
|
2023-12-07 14:02:18 +01:00
|
|
|
extern int fond, Nbr;
|
|
|
|
extern char score[4];
|
|
|
|
|
|
|
|
extern int go_on;
|
2023-12-17 12:58:38 +01:00
|
|
|
extern int go_menu;
|
|
|
|
extern int pause;
|
2023-12-10 14:52:16 +01:00
|
|
|
extern int imageMenu;
|
2023-12-07 14:02:18 +01:00
|
|
|
|
|
|
|
void Pomme();
|
|
|
|
void Controle();
|
|
|
|
void Serpent();
|
|
|
|
void Update_Serpent();
|
|
|
|
void Terrain();
|
|
|
|
void Timer();
|
|
|
|
void Update_Timer();
|
|
|
|
void DessinerScene();
|
|
|
|
void Score();
|
|
|
|
void Collision();
|
2023-12-10 13:11:43 +01:00
|
|
|
void MenuDeFin();
|
2023-12-10 14:52:16 +01:00
|
|
|
void MenuDebut();
|
2023-12-12 15:00:17 +01:00
|
|
|
void Attendre();
|
2023-12-04 17:01:52 +01:00
|
|
|
|
|
|
|
#endif
|