SAE11_2023/JEUX_SERPENT/fonction.h

35 lines
662 B
C
Raw Normal View History

2023-12-07 14:02:18 +01:00
#ifndef FONCTION_H
#define FONCTION_H
#include <stdlib.h>
#include <stdio.h>
#include <graph.h>
#include <time.h>
#include <unistd.h>
extern int seconde, minute, seconde_actuel, old_seconde;
extern char timer[6];
extern unsigned long int suivant;
extern int serpent;
extern int x, y, direction, t, segment, i;
extern int pos_x[60], pos_y[60], old_x[60], old_y[60];
extern int p, pp, pomme, pommex[5], pommey[5];
extern int fond, Nbr;
extern char score[4];
extern int go_on;
void Pomme();
void Controle();
void Serpent();
void Update_Serpent();
void Terrain();
void Timer();
void Update_Timer();
void DessinerScene();
void Score();
void Collision();
2023-12-04 17:01:52 +01:00
#endif