2023-12-15 09:15:22 +01:00
|
|
|
#ifndef GRAPHIQUE_H
|
|
|
|
#define GRAPHIQUE_H
|
|
|
|
#include <graph.h>
|
|
|
|
#include "serpent.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2023-12-19 17:24:52 +01:00
|
|
|
#define HAUTEUR 40
|
|
|
|
#define LARGEUR 60
|
|
|
|
#define TAILLE_CASE 19
|
2023-12-15 09:15:22 +01:00
|
|
|
#define NOMBRE_POMMES 5
|
2023-12-24 10:31:48 +01:00
|
|
|
#define NOMBRE_OBSTACLES 10
|
2023-12-19 17:24:52 +01:00
|
|
|
#define CYCLE 100000L
|
2023-12-15 09:15:22 +01:00
|
|
|
void Attendre(unsigned int millisecondes);
|
|
|
|
void Graphique();
|
|
|
|
void AffichageBasique();
|
|
|
|
void AfficherScore(int score);
|
|
|
|
void AfficheTemps(int minute, int seconde);
|
|
|
|
void AfficherEcranFin(int score);
|
2023-12-18 14:51:12 +01:00
|
|
|
int PauseJeu(int perdu);
|
2023-12-15 09:15:22 +01:00
|
|
|
void AfficherSerpent(Serpent* serpent);
|
|
|
|
void InitialiserJeu(Serpent* serpent, Pommes* pommes, Obstacles* obstacles);
|
|
|
|
void LibererMemoire(Serpent* serpent, Pommes* pommes, Obstacles* obstacles);
|
|
|
|
#endif
|